View source: R/paste_skip_na.R
paste_skip_na | R Documentation |
paste()
, but missing values are omittedLike paste()
, but missing values are omitted
paste_skip_na(..., sep = " ", collapse = NULL)
..., sep, collapse |
See |
If all values are missing, the value from the first argument is preserved.
A character vector of pasted values.
paste_skip_na(NA) # NA_character_
paste_skip_na("A", NA) # "A"
paste_skip_na("A", NA, c(NA, "B"), sep = ",") # c("A", "A,B")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.