time_sort | R Documentation |
Within each subject, sort samples by time and calculate distance from the baseline point (minimum time).
time_sort(x)
x |
A metadata data.frame including the following columns: time, subject, sample, signal. Or a phyloseq object. |
A list with sorted metadata (data.frame) for each subject.
Leo Lahti leo.lahti@iki.fi
See citation('microbiome')
data(atlas1006)
pseq <- subset_samples(atlas1006, DNA_extraction_method == "r")
ts <- time_sort(meta(pseq))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.