View source: R/ecospat.modelingtools.R
| ecospat.caleval | R Documentation | 
Generate an evaluation and calibration dataset with a desired ratio of disaggregation.
ecospat.caleval (data, xy, row.num=1:nrow(data), nrep=1, ratio=0.7, 
disaggregate=0, pseudoabs=0, npres=0, replace=FALSE)| data | A vector with presence-absence (0-1) data for one species. | 
| xy | The x and y coordinates of the projection dataset. | 
| row.num | Row original number | 
| nrep | Number of repetitions | 
| ratio | Ratio of disaggregation | 
| disaggregate | Minimum distance of disaggregation (has to be in the same scale as xy) | 
| pseudoabs | Number of pseudoabsences | 
| npres | To select a smaller number of presences from the dataset to be subsetted. The maximum number is the total number of presences | 
| replace | F to replace de pseudoabsences | 
This functions generates two list, one with the calibration or training dataset and other list with the evaluation or testing dataset disaggregated with a minimum distance.
list("eval"=eval,"cal"=cal))
Blaise Petitpierre bpetitpierre@gmail.com
data <- ecospat.testData
caleval <- ecospat.caleval (data = ecospat.testData[53], xy = data[2:3], row.num = 1:nrow(data), 
nrep = 2, ratio = 0.7, disaggregate = 0.2, pseudoabs = 100, npres = 10, replace = FALSE)
caleval
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.