Description Usage Arguments Value See Also Examples
Given a set of vectors, coelesce finds the first non-missing value
at each position. This is inspired by the SQL COALESCE function
which does the same thing for NULLs.
1 |
x, ... |
Vectors. All inputs should either be length 1, or the
same length as |
A vector the same length as x with missing values replaced
by the first non-missing value.
na_if() to replace specified values with a NA.
1 2 3 4 5 6 7 8 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.