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

See also

Other Imputation functions: gen_to_geno(), geno_to_dosage(), snmf_bestK(), snmf_crossent_helper(), str_impute()