View source: R/1a-propr-backend.R
simple_zero_replacement | R Documentation |
This function replaces zeros with the next smallest non-zero value in the input count matrix. If the matrix contains no zeros, it produces an informational message indicating that no replacements were made.
simple_zero_replacement(ct)
ct |
A data matrix for which the log-ratio transformation will be performed. It is assumed that the matrix contains numerical values only. |
A matrix with zero values replaced by the next smallest non-zero value.
# Sample input count data with zeros
data <- matrix(c(0, 2, 3, 4, 5, 0), nrow = 2, byrow = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.