time_sort {microbiome} | R 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))

[Package microbiome version 1.14.0 Index]