DATA MINING
Desktop Survival Guide by Graham Williams |
|||||
strsplit is used to split a string into substrings:
> unlist(strsplit("abc def ghi jkl", " ")) [1] "abc" "def" "ghi" "jkl" > unlist(strsplit("abc,def:ghi.jkl", "\\.|,|:")) [1] "abc" "def" "ghi" "jkl" |
\\.
is
required to quote the full stop).