cc | R Documentation |
Split up a string (with separators) into a character vector (whitespace around separator is trimmed).
cc(..., sep = "auto", trim = TRUE)
... |
Character string(s). |
sep |
Pattern for separation.
Defaults to |
trim |
Remove whitespace from start and end of string(s)?
Defaults to |
Character vector.
cc("a,b,c,d,e")
cc(" a , b , c , d , e ")
cc(" a , b , c , d , e ", trim=FALSE)
cc("1, 2, 3, 4, 5")
cc("A 1 , B 2 ; C 3 | D 4 \t E 5")
cc("A, B, C",
" D | E ",
c("F", "G"))
cc("
American
British
Chinese
")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.