impute_zeros {coda4microbiome} | R Documentation |
impute_zeros
Description
Simple imputation: When the abundance table contains zeros, a positive value is added to all the values in the table. It adds 1 when the minimum of table is larger than 1 (i.e. tables of counts) or it adds half of the minimum value of the table, otherwise.
Usage
impute_zeros(x)
Arguments
x |
abundance matrix or data frame (rows are samples, columns are variables (taxa)) |
Value
x abundance matrix or data frame with zeros substituted by imputed positive values
Author(s)
M. Calle - T. Susin
Examples
data(HIV, package = "coda4microbiome")
x<-impute_zeros(x_HIV)
[Package coda4microbiome version 0.2.4 Index]