View source: R/remove_samples.r
remove_samples | R Documentation |
Remove samples from a Dataset object.
remove_samples(Dat, samples, droplevels = TRUE)
Dat |
A Dataset object |
samples |
String vector indicating which samples to remove. Sample IDs must be equal to the column headers of the abundance table on Dat. |
droplevels |
Logical indicating whether levels that desappear from the mapping file should be removed. |
A Dataset object
Sur Herrera Paredes
remove_taxons
data(Rhizo) data(Rhizo.map) Dat <- create_dataset(Rhizo,Rhizo.map) Dat <- remove_samples(Dat = Dat, samples = colnames(Dat$Tab)[1:50]) Dat <- remove_taxons(Dat = Dat, taxons = row.names(Dat$Tab)[1:115]) sum(colSums(Dat$Tab) == 0) sum(rowSums(Dat$Tab) == 0) Dat$Tab Dat.clean <- clean(Dat) Dat.clean$Tab
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.