countryStatusRangeAnalysis: Range analysis

View source: R/analysis.R

countryStatusRangeAnalysisR Documentation

Range analysis

Description

Identify and filter species records based on countries where species is considered native or alien.

Usage

countryStatusRangeAnalysis(
  df,
  xf,
  yf,
  .ntv.ctry,
  .inv.ctry,
  .c.field,
  .points.proj4string,
  .countries.shapefile,
  cfsf,
  excludeUnknownRanges = FALSE,
  excludeNotmatchCountry = FALSE,
  doRangeAnalysis = TRUE,
  verbose = FALSE
)

Arguments

df

data.frame of species occurrences

xf

character. The field in the data.frame containing the x coordinates

yf

character. The field in the data.frame containing the y coordinates

.ntv.ctry

character. Native country in ISO3 coding

.inv.ctry

character. Invasive country in ISO3 coding

.c.field

character. Country field in the species data.frame (df)

.points.proj4string

Proj4string for the occurrence data

.countries.shapefile

spatialPolygonDataFrame of political divisions

cfsf

character. Column name of the .country spatialPolygonDataFrame indicaing the country in ISO3 codeing.

excludeUnknownRanges

logical. Should records be filtered if located in countries outside .ntv.ctry or .inv.ctry? Defalut FALSE

excludeNotmatchCountry

Should records be if the reported country is different than the locatoin country? . Default FALSE

doRangeAnalysis

logical. Should range analysis be performed?

verbose

logical. Print messages? Default FALSE

Details

It returns a list with two elements: stay (records that are excluded/filtered), continue (records that are not excluded from the filtering process)

Value

list

Author(s)

Josep M Serra-Diaz (pep.serradiaz@agroparistech.fr)

See Also

Other analysis: .nearestcell3(), centroidDetection(), duplicatesexcludeAnalysis(), geoEnvAccuracy(), humanDetection()


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