| pasteNArm | R Documentation |
Behaves as 'paste()' would, but removes NAs before converting its arguments (via as.character) to character strings
pasteNArm(..., sep = "", collapse = "")
... |
See 'paste()' for arguments. |
sep |
See 'paste()' for arguments. |
collapse |
See 'paste()' for arguments. |
See 'paste()' for return values.
## Not run:
s <- c("a", "b", NA, "d")
paste(s, collapse = "")
# [1] "abNAd"
pasteNArm(s, collapse = "")
# [1] "Abd"
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.