splitstring | 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"
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.