Detect environmental outliers using different methods
envOutliers(
df,
xf,
yf,
.r.env,
.th.perc.outenv,
.sp.name,
method = "all",
.projString,
do = TRUE,
verbose = FALSE
)
data.frame
data.frame of species occurrences
character. column name in df containing the x coordinates
character. column name in df containing the y coordinates
raster. Raster with environmental data
numeric. Value from 0 to 1 to identify the rate of variables not passing the test to consider the record an environmental outlier.
Species name
charcter. Vector of methods to be used. See details. Default 'all'
proj4string character. Indicate coordinate reference system
logical. Should tests be performed? Default TRUE
logical. Print messages? Default FALSE
Josep M Serra-Diaz (pep.serradiaz@agroparistech.fr), Cory Merow (cmerow@gmail.com). Mark Robertson (biogeo package)
Implemented methods are :
'bxp' based on boxplot distribution (1.5 Interquartile range) in a variable to identify the record as outlier (outliers)
'Grubbs' based on Grubbs test. See ?findEnvOutliers
Regardless of the method, the function already tests for missing environmental variables and it outputs the result in the output data.frame
findEnvOutliers outliers