stringify | R Documentation |
Turn a vector (e.g. c(1, 2, 3)
) into a string (e.g. "'1', '2', '3'"
).
This function is particularly useful when creating error messages,
describing problematic values.
stringify(
x,
before = NULL,
after = NULL,
collapse = ", ",
quote = "'",
n_max = 10,
further = "..."
)
x |
An object, which should be turned into a string. Usually an atomic object (a vector). |
before |
A string placed before each vector entry. |
after |
A string placed after each vector entry. |
collapse |
A string, used for separating each vector entry. |
quote |
A string, holding the symbol which should be used for quoting
every entry of |
n_max |
A positive integer or |
further |
A string indicating further (after |
A string showing the entries of the vector.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.