This function builds an index from the ivar
argument. Used by
the propr
initialize method and updateF
.
ivar2index(counts, ivar)
A data.frame or matrix. A "count matrix" with subjects as rows and features as columns.
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.