cor_by_grp | R Documentation |
Two-sided correlation test in each group and combine the directional p-values.
cor_by_grp(
object,
phenotype,
grp,
method = "pearson",
reorder.rows = TRUE,
prefix = NULL,
check.names = TRUE
)
object |
Matrix-like data object containing log-ratios or log-expression values, with rows corresponding to features (e.g. genes) and columns to samples. Must have row names that are non-duplicated and non-empty. |
phenotype |
Numeric vector of sample characteristics (e.g. phenotypes or treatments).
Should be same length as |
grp |
Vector of sample groups. These must be valid variable names in R and the same length as
|
method |
Character string indicating which correlation coefficient to be used for the test. One of
|
reorder.rows |
Logical, should rows be reordered by p-value? |
prefix |
Character string to add to beginning of column names. |
check.names |
Logical; should |
A data.frame of test statistics for each group and the combined statistics.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.