collapse | R Documentation |
A shortcut of 'paste(x, collapse = y)' for collapsing character vectors into a single string separated by some character. Running 'collapse(c("item 1", "item 2"), sep = " + ")' is identical to running 'paste(c("item 1", "item 2"), collapse = " + ")'.
collapse(vector, sep = " + ")
vector |
a vector of character strings. (e.g., 'c("item 1")') |
sep |
a character string to separate the results. Defaults to " + ". |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.