paste_na | R Documentation |
This enables 'paste' to work even when some of the entries are NA values, and the desired output is an empty string when NAs are pasted.
paste_na(..., sep = " ")
... |
List of R objects, to be converted to character vectors. |
sep |
A character string to separate the terms. |
This is originally from the following StackOverflow post: https://stackoverflow.com/questions/13673894/suppress-nas-in-paste#15673180 This is simply a cosmetically changed version of 42-'s answer.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.