i_mean: Impute by mean

View source: R/impute.R

i_meanR Documentation

Impute by mean

Description

Replaces NAs in a numeric vector with the mean of the non-NA values.

Usage

i_mean(x)

Arguments

x

A numeric vector

Value

A numeric vector

Examples

x <- c(1,2,3,4, NA)
i_mean(x)


COINr documentation built on Oct. 9, 2023, 5:07 p.m.