group_test {pcutils} | R Documentation |
Performs multiple mean comparisons for a data.frame
Description
Performs multiple mean comparisons for a data.frame
Usage
group_test(
df,
group,
metadata = NULL,
method = "wilcox.test",
threads = 1,
p.adjust.method = "BH",
verbose = TRUE
)
Arguments
df |
a data.frame |
group |
The compare group (categories) in your data, one column name of metadata when metadata exist or a vector whose length equal to columns number of df. |
metadata |
sample information dataframe contains group |
method |
the type of test. Default is wilcox.test. Allowed values include:
|
threads |
default 1 |
p.adjust.method |
p.adjust.method, see |
verbose |
logical |
Value
data.frame
Examples
data(otutab)
group_test(otutab, metadata$Group, method = "kruskal.test")
group_test(otutab[, 1:12], metadata$Group[1:12], method = "wilcox.test")
[Package pcutils version 0.2.6 Index]