Displaying 1 result from an estimated 1 matches for "s96c".
Did you mean:
696c
2008 Apr 24
0
Name of objects in a list
...o a
mantel test between them I wrote a function the returns a list with the
output of single tests. I would like to include the name of the tests,
so I know what each element of the result list is. My code is as follows:
land <- list(s1536 = s1536, s384L = s384L, s96L = s96L, s384c = s384c,
s96c = s96c, s384r = s384r, s96r = s96r)
library(analogue)
ldis <- lapply(land, function(x) as.dist(distance(x, method = "mixed")))
mantel.list <- function(x, ...) {
require(ade4)
for (i in 2:length(x)) {
x1 <- x[[i - 1]]
x2 <- x[[i]]
y[[i]] <- mantel.rtest(x1, x...