join | R Documentation |
Similar as paste, but ignores NULL, NA and empty strings.
join(..., sep = " ", collapse = NULL)
... |
one or more R objects, to be converted to character vectors. |
sep |
a a character string to separate the terms. Not "NA_character_". |
collapse |
an optional character string to separate the results. Not "NA_character_". |
a character vector of the concatenated values. See paste
.
beter:::join("foo", NULL, NA, "", "bar") # "foo bar"
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.