replaceColWithMode: Replace missing values of a column with the modal value

Description Usage Arguments

Description

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.

Usage

1

Arguments

df

The name of the dataframe for which the columns will replace missing value with modal values


RonGuymon/ronsFunctions documentation built on May 8, 2019, 11:42 a.m.