time_sort: Temporal Sorting Within Subjects

View source: R/time_sort.R

time_sortR Documentation

Temporal Sorting Within Subjects

Description

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

Usage

time_sort(x)

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

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

microbiome/microbiome documentation built on Aug. 22, 2023, 7:12 a.m.