variability_individual: variability_individual

Description Usage Arguments Value Examples

Description

Average CoV within individuals for each feature in the data matrix

Usage

1
variability_individual(dat, meta, method = "timevar")

Arguments

dat

Data matrix (samples x features)

meta

Metadata (samples x variables) with the following fields: subject, time

method

Method to calculate the variability within individuals: sd (ignores time) or timevar (normalizes by time)

Value

Vector. Average variability within individuals for each feature.

Examples

1
2
3
4
#library(microbiome)
  #data(peerj32)
  #cv <- variability_individual(peerj32$microbes, peerj32$meta)
  #print(head(cv))

microbiome/microbiomeold documentation built on May 22, 2019, 9:57 p.m.