View source: R/coda4microbiome_functions.R
impute_zeros | R Documentation |
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.
impute_zeros(x)
x |
abundance matrix or data frame (rows are samples, columns are variables (taxa)) |
x abundance matrix or data frame with zeros substituted by imputed positive values
M. Calle - T. Susin
data(HIV, package = "coda4microbiome")
x<-impute_zeros(x_HIV)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.