impute_w_mean: Imputes NA/missing values in a vector with random values...

View source: R/impute_w_mean.R

impute_w_meanR Documentation

Imputes NA/missing values in a vector with random values plus/minus the percent around the mean of the values in vector

Description

Imputes NA/missing values in a vector with random values plus/minus the percent around the mean of the values in vector

Usage

impute_w_mean(v, p = 5)

Arguments

v

A numeric vector containing NAs

p

the percent around the mean, e.g. p=5%=5

Value

The input vector with NAs imputed.


kazeera/hourglass documentation built on April 5, 2025, 7:18 a.m.