# NOT RUN {
#Creating a DataSplitTable for 200 sites, 25 runs with an
#80/20 calibration/evaluation cross-validation
DataSplitTable <- ecospat.CCV.createDataSplitTable(NbSites = 200,
NbRunEval=25,
DataSplit=80,
validation.method='cross-validation')
#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))]
#Creating a DataSplitTable based on species data directly
DataSplitTable <- ecospat.CCV.createDataSplitTable(NbRunEval = 20,
DataSplit = 70,
validation.method = "cross-validation",
NbSites = NULL,
sp.data = sp.data,
minNbPresence = 15,
minNbAbsences = 15,
maxNbTry = 250)
# }
# NOT RUN {
# }
Run the code above in your browser using DataLab