envOutliers | R Documentation |
Detect environmental outliers using different methods
envOutliers( df, xf, yf, .r.env, .th.perc.outenv, .sp.name, method = "all", .projString, do = TRUE, verbose = FALSE )
df |
data.frame of species occurrences |
xf |
character. column name in df containing the x coordinates |
yf |
character. column name in df containing the y coordinates |
.r.env |
raster. Raster with environmental data |
.th.perc.outenv |
numeric. Value from 0 to 1 to identify the rate of variables not passing the test to consider the record an environmental outlier. |
.sp.name |
Species name |
method |
charcter. Vector of methods to be used. See details. Default 'all' |
.projString |
proj4string character. Indicate coordinate reference system |
do |
logical. Should tests be performed? Default TRUE |
verbose |
logical. Print messages? Default FALSE |
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
data.frame
Josep M Serra-Diaz (pep.serradiaz@agroparistech.fr), Cory Merow (cmerow@gmail.com). Mark Robertson (biogeo package)
findEnvOutliers outliers
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.