Learn R Programming

propr (version 3.1.8)

ivar2index: Build Index from ivar Argument

Description

This function builds an index from the ivar argument. Used by the propr initialize method and updateF.

Usage

ivar2index(counts, ivar)

Arguments

counts

A data.frame or matrix. A "count matrix" with subjects as rows and features as columns.

ivar

A numeric scalar. Specifies reference feature(s) for additive log-ratio transformation. The argument will also accept feature name(s) instead of the index position(s). Set to "iqlr" to use inter-quartile log-ratio transformation. Ignore to use centered log-ratio transformation.