impute_w_mean_df: Imputes NA/missing values in a data frame with random values...

View source: R/impute_w_mean.R

impute_w_mean_dfR Documentation

Imputes NA/missing values in a data frame with random values plus/minus the percent around the mean across rows/columns

Description

Imputes NA/missing values in a data frame with random values plus/minus the percent around the mean across rows/columns

Usage

impute_w_mean_df(df, row.or.col = 2, p = 5)

Arguments

df

Numeric data frame or matrix

row.or.col

Number indicating direction to apply function - either 1 (rows) or 2 (columns, default)

p

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

Value

The input data frame with NAs imputed.


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