kruskal.wallis | R Documentation |
Computes a Kruskal-Wallis rank sum test for multiple variables. Input must be a table with indexes as columns and samples as rows. Further columns should include metadata.
kruskal.wallis(data, numberOfIndexes, formula, ...)
data |
a data frame, columns corresponding to indexes and rows
corresponding to samples. Further columns should be included with metadata.
This is used in argument |
numberOfIndexes |
Integer corresponding to the number of indexes to analyze. This will be take as column numbers by the function. |
formula |
Metadata group name. This will group samples according to a
metadata column (corresponding to |
... |
Further arguments passed to kruskal.test. |
Returns a data frame with p-values of the test for all variables
(determined by numberOfIndexes
).
kruskal_location<-kruskal.wallis(alpha_diversity_table, 4, "location")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.