medReplace: Replace missing values of a column with the median

Description Usage Arguments Value

Description

This is useful for data that has missing values and for which it makes sense to replace missing values with the median.

Especially useful when used with dplyr::group_by so that you can replace missing values with medians from the same strata.

Usage

1

Arguments

x

The name of the vector for which you want to replace missing values with the median.

Value

A number.


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