Learn R Programming

MetAlyzer (version 1.1.0)

data_imputation: Impute aggregated data

Description

This function imputes zero concentration values with a percentage of the minimal positive value. If all values are zero or NA, they are set to NA. The imputed values are added to plotting_data in an extra column imputed_Conc.

Usage

data_imputation(metalyzer_se, impute_perc_of_min, impute_NA)

Arguments

metalyzer_se

A MetAlyzer object

impute_perc_of_min

A numeric value between 0 and 1. Percentage of the minimal positive value, that is taken for imputation

impute_NA

Logical value whether to impute NA values