# NOT RUN {
#Loading species occurence data and remove empty communities
testData <- ecospat.testData[,c(24,34,43,45,48,53,55:58,60:63,65:66,68:71)]
sp.data <- testData[which(rowSums(testData)>0), sort(colnames(testData))]
#Loading environmental data
env.data <- ecospat.testData[which(rowSums(testData)>0),4:8]
#Coordinates for all sites
xy <- ecospat.testData[which(rowSums(testData)>0),2:3]
#Running all the models for all species
myCCV.Models <- ecospat.CCV.modeling(sp.data = sp.data,
env.data = env.data,
xy = xy,
NbRunEval = 5,
minNbPredictors = 10,
VarImport = 3)
# }
Run the code above in your browser using DataLab