impute_zeros: impute_zeros

View source: R/coda4microbiome_functions.R

impute_zerosR 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)


coda4microbiome documentation built on Sept. 11, 2024, 8 p.m.