This is useful for data that has missing values and for which it makes sense to replace missing values with the modal value.
Works with numeric or categorical columns
Especially useful when used with dplyr::group_by so that you can replace missing values with medians from the same strata.
1 |
df |
The name of the dataframe for which the columns will replace missing value with modal values |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.