strspl: strspl

Description Usage Arguments Details

Description

Split the elements of a character vector x into substrings according to the matches to substring split within them. A character vector is returned. Blank spaces, tabs and line breaks are removed.

Usage

1
strspl(x, split = ",")

Arguments

x

character vector, each element of which is to be split. Other inputs, including a factor, will give an error.

split

character vector containing regular expressions to use for splitting. If empty matches occur, in particular if split has length 0, x is split into single characters. If split has length greater that 1, it is re-cycled along. Default value is ','.

Details

See strsplit {base}.


optimist/optimist documentation built on May 24, 2019, 3:56 p.m.