View source: R/SDMdata.quality.R
| SDMdata.quality | R Documentation |
Evaluate the percentage of occurrences that fall on pixels assigned by NA values in the environmental RasterStack. It may provide interesting information to interpret model robustness.
SDMdata.quality(data)
data |
SDMtab object or dataframe that contains id, longitude, latitude and values of environmental descriptors at corresponding locations |
prop Dataframe that provides the proportion of NA values on which the presence data fall, for each environmental predictor
SDMeval
#Generate a SDMtab
data('ctenocidaris.nutrix')
occ <- ctenocidaris.nutrix
# select longitude and latitude coordinates among all the information
occ <- ctenocidaris.nutrix[,c('decimal.Longitude','decimal.Latitude')]
library(raster)
data("predictors2005_2012")
envi <- predictors2005_2012
envi
#Create the SDMtab matrix
SDMtable_ctenocidaris <- SDMPlay:::SDMtab(xydata=occ,
predictors=predictors2005_2012,
unique.data=FALSE,
same=TRUE)
# Evaluate the matrix quality
## Not run:
SDMPlay:::SDMdata.quality(data=SDMtable_ctenocidaris)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.