Skip to contents

Impute NA values NOTE: use extreme caution when using this form of simplistic imputation. We mainly provide this code for creating test datasets and highly discourage its use in analyses.

Usage

simple_impute(x, FUN = median)

Arguments

x

matrix

f

function to use for imputation (defaults to median)

Value

matrix of values with missing values imputed