paste_valid | R Documentation |
Given a set of character objects, combine all non-empty variables into a single string. Uses is_empty()
to test validity, so should be robust to all kinds of missingness. It will remove both NA and NULL.
paste_valid(..., sep = "", collapse = "_")
... |
a set of arguments to be combined into a single string |
sep |
character added to end of each argument; default sep="" |
collapse |
character separating the concatenated strings; default collapse="_" |
Other simple text string manipulation functions:
string_capitalize_first()
,
string_parseCamel()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.