View source: R/vector2string.R
vector2string | R Documentation |
Merges all the values and outputs a string formatted as '1st element', '2nd element', ...
vector2string(
x,
quotation_mark = "'",
collapse = sprintf("%s, %s", quotation_mark, quotation_mark)
)
x |
The vector to collapse |
quotation_mark |
The type of quote to use |
collapse |
The string that separates each element |
A string with ', '
separation
vector2string(1:4)
vector2string(c("a", "b'b", "c"))
vector2string(c("a", "b'b", "c"), quotation_mark = '"')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.