Description Usage Arguments Value Author(s) See Also Examples
Mantel and partial mantel test for dissimilarity matrices
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
... |
extra params passing to |
spec, env |
data frame object. |
group |
vector for grouping the rows. |
env.ctrl |
NULL (default), data frame. |
mantel.fun |
string, function of mantel test.
|
spec.select, env.select |
NULL (default), numeric or character vector index of columns. |
use |
one of "everything", "complete" or "pairwise". |
spec.dist.method |
dissimilarity index (default is 'bray'), passing to |
env.dist.method |
dissimilarity index (default is euclidean'), passing to |
seed |
a integer value. |
a data.frame.
Houyun Huang, Lei Zhou, Jian Chen, Taiyun Wei
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | ## Not run:
library(vegan)
data("varespec")
data("varechem")
mantel_test(varespec, varechem,
spec.select = list(spec01 = 1:5, spec02 = 6:12))
mantel_test(varespec, varechem,
spec.select = list(spec01 = 1:5, spec02 = 6:12),
env.select = list(env01 = 1:5, env02 = 6:10, env03 = 11:14))
set.seed(20191224)
sam_grp <- sample(paste0("sample", 1:3), 24, replace = TRUE)
mantel_test(varespec, varechem, group = sam_grp)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.