impute_missing_vals: Impute Missing Values in a data frame

Description Usage Arguments Value

View source: R/mm.R

Description

Impute Missing Values in a data frame

Usage

1
impute_missing_vals(df, method = "mean")

Arguments

df

where ever column may be imputed (so each column is numeric)

method

of imputation, "mean" imputes the mean of the other values into the NA values. "bootstrap" resamples from non-NA vals.

Value

df of same dimension, now with no missing vals


leerichardson/spew documentation built on May 21, 2019, 1:39 a.m.