na_mean: na_mean

Description Usage Arguments Value See Also

View source: R/na_mean.R

Description

Replace NA values with the mean

Usage

1

Arguments

x

numeric; vector to have NA values replaced.

...

additional arguments passed to mean such as

Replaces NA values with the mean of the series. Will return NA if all the values are NA

Value

A vector of the same length as x with NA replaced by the mean

See Also

na_replace, na_median


decisionpatterns/na.actions documentation built on Aug. 25, 2020, 8:04 p.m.