Concatenate strings dropping missing values
paste_missing.Rd
Concatenate strings dropping missing values
Arguments
- ..., sep, collapse
See
?paste
- missing_values
Values considered missing to be ignored in pasting.
- paste_last
When all
...
arguments have been combined and only one remains, shouldpaste
be called on that last argument? (Ignored ifcollapse
is notNULL
.)
Details
If all values are missing, the value from the first argument is
preserved. paste_last
affects the final output; the main difference
is that if FALSE
, NA_character_
values will be preserved, and
if TRUE
, NA_character_
values will be converted to "NA" (as
is the case with paste()
).