filt: Mark occurrences with the name informed different from the...

Description Usage Arguments Details Value Author(s) Examples

Description

A function to check whether the coordinates are consistent with the name of the polygon.

Usage

1
2
filt(pts, shape = NULL, field.pts = "municipality",
  field.shape = "NOMEMUNICP")

Arguments

pts

Data.frame. Table with points of occurrence, including the municipalities informed on the label.

shape

It can be a shape of municipalities of Brazil in format "SpatialPolygonsDataFrame".

field.pts

String. Name of pts column containing the standard to be searched for.

field.shape

String.Name of shape column containing the standard to be searched for.

Details

The initial idea of this function is to verify if the coordinates informed in the label of the registries are located within the limits of the municipality informed by the label. Returns a table equal to the one entered by adding a column (status) indicating whether the coordinates are consistent.

Value

a data frame

Author(s)

Diogo S. B. Rocha

Examples

1
2
eug <- filt(Eugenia_aurata, shape = world, field.pts = "country", field.shape = "LONG_NAME")
eug

diogosbr/spfilt documentation built on May 31, 2019, 2:47 p.m.