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

[Package microbiome version 1.6.0 Index]