time_normalize: Normalize Phyloseq Metadata Time Field

View source: R/time_normalize.R

time_normalizeR Documentation

Normalize Phyloseq Metadata Time Field

Description

Shift the time field in phyloseq sample_data such that the first time point of each subject is always 0.

Usage

time_normalize(x)

Arguments

x

phyloseq object. The sample_data(x) should contain the following fields: subject, time

Value

Phyloseq object with a normalized time field

Examples

data(peerj32)
pseq <- time_normalize(peerj32$phyloseq)

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