Description Usage Arguments Value Examples
Impute values to a replacement value if a condition is true
1 | impute_value(df, impute_col, condition, replacement)
|
df |
A data frame |
impute_col |
A character vector specifying the column to perform imputation. |
condition |
A logical condition. |
replacement |
The replacement value if condition is true. |
A data frame. The selected columns that is subsetted by var_affix contain changed values given the condition and replacement values.
1 | impute_value(df = iris, impute_col = "Species", condition = iris$species == "setosa", replacement = "Setosa")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.