View source: R/data_refinement.R
| scale_by_column | R Documentation |
This function scales the abundances in each sample by a constant, making it suitable to transform from relative data to absolute data.
scale_by_column(object, column)
object |
A |
column |
Either a character vector of length 1 with the name of the column in the sample data to scale by or a numeric vector which length is equal to the number of samples. |
A phyloseq object where the abundances in the OTU table are scaled
library(micInt)
library(phyloseq)
data("soilrep")
s <- 1:nsamples(soilrep)
scale_by_column(soilrep, s)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.