Given a set of vectors, coalesce() finds the first non-missing value at each position. This is inspired by the SQL
COALESCE function which does the same thing for NULLs.
Arguments
- ...
Vectors. Inputs should be recyclable (either be length
1Lorn) and coercible to a common type.
See also
na_if() to replace specified values to a NA.
replace_na() to replace a NA with a value.
