str_flatten | R Documentation |
This is a summary function for strings: regardless of the length of the input, it always returns a single string.
str_flatten(string, collapse = "", last = NULL)
string |
|
collapse |
|
last |
(Optional) |
Returns a character vector
of length 1
str_flatten(letters) str_flatten(letters, "-") str_flatten(letters[1:5], ", ", ", and ") str_flatten(letters[1:3], ", ", ", and ") str_flatten(letters[1:2], ", ", ", and ") str_flatten(letters[1], ", ", ", and ") str_flatten(letters[0], ", ", ", and ")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.