Description Usage Arguments Value
View source: R/replace_missing_number.R
Given a tibble and a column, this function will find target values (by default NA) and replace them with another number (by default 0).
1 2 3 4 5 6 7 | replace_missing_number(
this_data,
this_var,
this_function = NA,
replacement_targets = NA,
replacement_value = 0
)
|
this_data |
The tibble in which the column exists |
this_var |
The column name (if not a quosure, it will be made into one) |
this_function |
A label for error/warning messages (by default it is the name of this function). |
replacement_targets |
The value to be replaced (default=NA) |
replacement_value |
The value to replace it with (default=0) |
The updated tibble
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.