Description Usage Arguments Value Examples
View source: R/trait_selection_function.R
This function determines whether the selected traits exhibit or not a clustering/overdispersion signal on the tested samples. For each trait, compares the observed Mean Pairwise Distance (MPD) of each sample against a distribution of synthetic commmunities MPDs obtained by a randomization test. Each synthetic community is build maintaining the original sample richness and randomly selecting organisms form the global pool.
1 | rtcc1(table1, table2, table3, traits_columns, repetitions)
|
table1 |
A data frame containing organisms names on the first column and its trait values on the consecutive ones. It also has to contain two columns with the maximum and the minimum values of the tested environmental variable where the organisms have been observed. |
table2 |
A presence-absence observations table with the organisms names on the first column and the sample names as consecutive colnames. |
table3 |
A dataframe containing sample names on the first column and environmental parameters on the consecutive ones. |
traits_columns |
Table 1 column numbers where different trait values appear. |
repetitions |
Number of simulated synthetic communities distributions. |
The function returns a dataframe with trait names as colnames and the p-value distribution of the different traits.
1 2 3 4 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.