R: Build Index from ivar Argument

ivar2index {propr} | R Documentation

## 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. 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.

[Package propr version 4.1.6 Index]