Learn R Programming

propr (version 3.1.8)

lr2cor: Correlate CLR with a Continuous Measurement

Description

This function correlates each log-ratio transformed feature vector with a continuous numeric variable.

Usage

lr2cor(lr, conditions, ...)

Arguments

lr

A data.frame. A log-ratio transformed counts matrix.

conditions

A numeric vector of a continuous variable.

...

Arguments passed to cor.test.

Value

Returns a data.frame of the correlation statistic (e.g., r) and p-value (p) for each log-ratio transformed feature. FDR provided by BH column.