centroidDetection: Centroid detection function

centroidDetectionR Documentation

Centroid detection function

Description

Identify occurrence records located near centroids.

Usage

centroidDetection(
  df,
  xf,
  yf,
  cf,
  idf,
  .ntv.ctry,
  .inv.ctry,
  .points.proj4string,
  .r.env,
  .countries.shapefile,
  cfsf,
  method = "all",
  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

idf

character. Column with the taxon observation ID.

.ntv.ctry

character. ISO3 country codes where species are considered native

.inv.ctry

character. ISO3 country codes where species are considered alien

.points.proj4string

Proj4string argument. Coordinate reference system

.r.env

raster. Raster of environmental variables considered in the analysis

.countries.shapefile

spatialPolygonDataFrame of political divisions

cfsf

character. Column name of the .country spatialPolygonDataFrame indicating the country in ISO3 coding.

method

character. Vector with the methods to detect centroids

do

logical. Should range analysis be performed? Default TRUE

verbose

logical. Print messages? Default FALSE

.c.field

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

Details

Current methods implemented for centroid detection are 'BIEN' (uses iterative procedure with threshold selection of distance to centroid)
, and method 'CoordinateCleaner' implementing methods used in CoordinateCleaner-package package.

Value

data.frame

Author(s)

Brian Maitner, Josep M Serra-Diaz, Cory Merow. Functions from CoordinateCleaner implemented by A Zizka (CoordinateCleaner)

See Also

cc_cap cc_cen

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


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