Description Usage Arguments Details Value Author(s)
View source: R/EcolUtils_functions.R
Computation of the abundance-weighted mean of an environmental variable for all OTUs in a community and statistical comparison to randomized communities.
1 |
comm.tab |
Community data, a matrix-like object (samples as rows; OTUs as columns). |
env.var |
Environmental variable as a numeric vector. |
n |
Number of permutations. |
probs |
Probabilities for confidence interval calculations. |
The niche.val
function computes the abundance-weighted mean of an environmental variable for each OTU in the comm.tab
. The mean value and CI for each OTU is computed for n
null matrices. The null matrices are created by randomly shuffling the rows in comm.tab
. Each OTU is classified depending whether the real niche value is lower / higher / within the CI.
Data frame with the observed niche value, the mean and CI null values and the classification of each OTU based on randomizations.
Guillem Salazar <guillems@ethz.ch>
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.