Description Usage Arguments Value Examples
Converts a vector (named or unnamed) into a single string representation.
1 | stringify_vec(vec, item_sep = ", ", name_sep = " = ", fmt = NULL)
|
vec |
vector: the vector to be converted into a character string. |
item_sep |
character: separator to use between vector elements when converting the vector into a string. |
name_sep |
character: separator to use between names and values when converting the vector into a string (if names exist). |
fmt |
character: format specification for the vector values, or NULL to
use defaults (which would be as returned by |
character: a single character string representation of the vector.
1 2 3 | stringify_vec(c(1, 2, 3))
stringify_vec(c(one = 1, two = 2, three = 3))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.