Description Usage Arguments Examples
Replaces missing values in data frames, similar to tidyr::replace_na()
with
a few extras. There are several ways to use this function. If called without
any arguments, all missing values will be replaced by the default type.
You can change the global default value with the then
argument, and you
can subset the columns to be affected with the vars
argument. Finally, you
can specify column-wise replacement values as named arguments, in which case
the other arguments are ignored.
1 2 |
.x |
Input vector of values |
... |
Optional named arguments specifying column-wise replacement values
for missing values. Other arguments are ignored by |
then |
Global replacement value to be used in place of the default. |
otherwise |
Ignored. |
vars |
Optional vector of column names that should receive the missing
value replacement. Use the |
1 2 3 4 5 6 7 8 9 10 11 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.