ztransform: Z Transformation

View source: R/transform.R

ztransformR Documentation

Z Transformation

Description

Z transform for matrices

Usage

ztransform(x, which, log10 = TRUE)

Arguments

x

a matrix

which

margin

log10

apply log10 transformation before Z

Details

Performs centering (to zero) and scaling (to unit variance) across samples for each taxa.

Value

Z-transformed matrix

Author(s)

Contact: Leo Lahti microbiome-admin@googlegroups.com

References

See citation('microbiome')

Examples

#data(peerj32)
#pseqz <- ztransform(abundances(peerj32$phyloseq))

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