grid_filter: Filter the occurrence with most confidence in species...

View source: R/grid_filter.R

grid_filterR Documentation

Filter the occurrence with most confidence in species identification inside grid cells

Description

In each grid cell it selects the occurrence with the highest confidence level in species identification made by classify_occ function.

Usage

grid_filter(
  occ.cl,
  grid.resolution = c(0.5, 0.5),
  r = NULL,
  institution.code = "institutionCode",
  collection.code = "collectionCode",
  catalog.number = "catalogNumber",
  year = "year",
  date.identified = "dateIdentified",
  species = "species",
  identified.by = "identifiedBy",
  decimal.latitude = "decimalLatitude",
  decimal.longitude = "decimalLongitude",
  basis.of.record = "basisOfRecord",
  media.type = "mediaType",
  occurrence.id = "occurrenceID",
  institution.source,
  year.event,
  scientific.name,
  determined.by,
  latitude,
  longitude,
  basis.of.rec,
  occ.id
)

Arguments

occ.cl

data frame with occurrence records information already classified by classify_occ function.

grid.resolution

numeric vector with width and height of grid cell in decimal degrees.

r

raster from which the grid cell resolution is derived.

institution.code

column name of occ.cl with the name (or acronym) in use by the institution having custody of the object(s) or information referred to in the record.

collection.code

column name of occ.cl with The name, acronym, code, or initials identifying the collection or data set from which the record was derived.

catalog.number

column name of occ.cl with an identifier (preferably unique) for the record within the data set or collection.

year

Column name of occ.cl the four-digit year in which the Event occurred, according to the Common Era Calendar.

date.identified

Column name of occ.cl with the date on which the subject was determined as representing the Taxon.

species

column name of occ with the species names.

identified.by

column name of occ.cl with the name of who determined the species.

decimal.latitude

column name of occ.cl latitude in decimal degrees.

decimal.longitude

column name of occ.cl longitude in decimal degrees.

basis.of.record

column name with the specific nature of the data record. See details.

media.type

column name of occ.cl with the media type of recording. See details.

occurrence.id

column name of occ with link or code for the occurrence record. See in Darwin Core Format

institution.source

deprecated, use institution.code instead.

year.event

deprecated, use year instead.

scientific.name

deprecated, use species instead.

determined.by

deprecated, use identified.by instead

latitude

deprecated, use decimal.latitude instead

longitude

deprecated, use decimal.longitude instead

basis.of.rec

deprecated, use basis.of.record instead.

occ.id

deprecated, use occurrence.id instead

Value

Data frame with the same columns of occ.cl.

Author(s)

Arthur V. Rodrigues

See Also

classify_occ

Examples


## Not run: 

data("A.setosa")
data("speciaLists")

occ.class <- classify_occ(A.setosa, speciaLists)
occ.grid <- grid_filter(occ.class)


## End(Not run)





naturaList documentation built on April 20, 2022, 5:11 p.m.