This help topic is for R version 0.60. For the current version of R, try https://stat.ethz.ch/R-manual/R-patched/library/base/html/strsplit.html
strsplit {base}R Documentation

Split the Strings in a Vector

Description

strsplit takes two arguments. A character vector to split, x, and a character string, split, to use as splits (this can also be a vector). It returns a list each element of which contains the vector of splits.

Usage

strsplit(x,split)

See Also

paste, nchar, substr

Examples

x <- c("asfef","qwerty","yuiop[","b","stuff.blah.yech")
#split x on the letter e
strsplit(x,"e")

[Package base version 0.60 ]