envOutliers: Detect environmental outliers

envOutliersR Documentation

Detect environmental outliers

Description

Detect environmental outliers using different methods

Usage

envOutliers(
  df,
  xf,
  yf,
  .r.env,
  .th.perc.outenv,
  .sp.name,
  method = "all",
  .projString,
  do = TRUE,
  verbose = FALSE
)

Arguments

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

Details

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

Value

data.frame

Author(s)

Josep M Serra-Diaz (pep.serradiaz@agroparistech.fr), Cory Merow (cmerow@gmail.com). Mark Robertson (biogeo package)

See Also

findEnvOutliers outliers


occTest documentation built on Nov. 18, 2022, 5:07 p.m.