splitstring {emu} | R Documentation |
Splits a string into words.
splitstring(str,char)
str |
A string. |
char |
A character to split on |
A vector of strings. The original str
is split at ever occurrence of
char
to generate a vector of strings.
splitstring("/home/recog/steve/foo", "/") #[1] "home" "recog" "steve" "foo"