ivar2index: Build Index from ivar Argument

Description Usage Arguments Value

View source: R/2-proprCall.R

Description

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

Usage

1
ivar2index(counts, ivar)

Arguments

counts

A data.frame or matrix. A "count matrix" with subjects as rows and features as columns. Note that this matrix does not necessarily have to contain counts.

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.

Value

A numeric vector of indices for the reference set.


propr documentation built on Dec. 16, 2019, 9:30 a.m.