time_sort: Temporal Sorting Within Subjects

Description Usage Arguments Value Author(s) References Examples

View source: R/time_sort.R

Description

Within each subject, sort samples by time and calculate distance from the baseline point (minimum time).

Usage

1

Arguments

x

A metadata data.frame including the following columns: time, subject, sample, signal. Or a phyloseq object.

Value

A list with sorted metadata (data.frame) for each subject.

Author(s)

Leo Lahti leo.lahti@iki.fi

References

See citation('microbiome')

Examples

1
2
3
data(atlas1006)
pseq <- subset_samples(atlas1006, DNA_extraction_method == "r")
ts <- time_sort(meta(pseq))

microbiome documentation built on Nov. 8, 2020, 5:08 p.m.