View source: R/calculation_definitions.R
paste2 | R Documentation |
Acts the same as regular paste, unless na.rm = TRUE, in which case empty strings and NA are removed
paste2(..., sep = " ", collapse = NULL, na.rm = FALSE)
... |
the list of strings to paste |
sep |
the separator string, " " by default |
collapse |
the collapse string, NULL by default |
na.rm |
whether to remove NA and empty strings |
based on code by Moody_Mudskipper at https://stackoverflow.com/questions/13673894/suppress-nas-in-paste with additional code from https://stackoverflow.com/questions/14270950/suppress-separator-in-paste-when-values-are-missing
string
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.