sortSamples | R Documentation |
Sort samples by group and optionally by time.
sortSamples(abundances, groups = c(), time = c(), alphabetical = FALSE)
abundances |
an abundance matrix with taxa as rows and samples as columns |
groups |
group membership vector with as many entries as samples |
time |
optional time vector with as many entries as samples; entries are numeric or characters of numbers |
alphabetical |
option to order samples by group name in alphabetical order |
an index vector with the updated sample order
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.