ReadPoints
and SpGeoCodH
, runs a complete speciesgeocodeR occurrences to area classification analysis from text files as input.
SpGeoCod(x, y, areanames, occ.thresh = 0, elevation, threshold, cleaning = FALSE, ...)
character string
giving the path to a text file containing the coordinates of points of interest (tab delimited, three columns with header: identifier, XCOOR, YCOOR) OR a data.frame
with three columns named: identifier, XCOOR, YCOOR.
character string
giving the path to a shape file containing the polygons of interet OR a text file containing the polygons of interest (tab delimited, three columns with header: identifier, XCOOR, YCOOR) OR an object of the class SpatialPolygons OR an object of the class SpatialPolygonsDataframe
.
character string
. If the input polygon file is a shape and not a text file, this column indicates the name of the column used for area names. See the SpeciesgeocodeR tutorial for more information, if the polygon input file is a text file leave as default (Default = "").
GeoClean
is applied to the input coordinates.
GeoClean
.
ReadPoints
, SpGeoCodH
.
data(lemurs)
data(mdg_poly)
outp <- SpGeoCod(lemurs, mdg_poly)
Run the code above in your browser using DataLab