Learn R Programming

pinyin (version 1.1.6)

strsplit2: split a string and extract the nth string

Description

split a string and extract the nth string

Usage

strsplit2(x, sep = " ", nth = 1)

Arguments

x

The string to split

sep

The separated character

nth

The nth string to extract

Value

a new string