Like paste()
, but missing values are omitted
Arguments
- ..., sep, collapse
See
base::paste()
Examples
paste_skip_na(NA) # NA_character_
#> [1] NA
paste_skip_na("A", NA) # "A"
#> [1] "A"
paste_skip_na("A", NA, c(NA, "B"), sep = ",") # c("A", "A,B")
#> [1] "A" "A,B"