Description Usage Arguments Details Value Examples
Concatenate strings, possibly interspersing them with another string.
1 |
... |
Objects to be pasted and collapsed. |
inter |
[character] String with which to intersperse the result. Defaults to an empty string. |
paste0(..., collapse="")
takes a little more space than collapse(...)
, though if the result is to be interspersed with something, the difference becomes merely one character: paste0(..., collapse="_")
vs collapse(..., inter="_")
.
[character] The collapsed string.
1 2 | tmp <- c ("i", "am", "a", "sample", "vector")
identical (soundcorrs:::collapse(tmp), paste0(tmp,collapse=""))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.