reduce.df: Internal function of naturaList - reduce data.frame of...

View source: R/internal_functions.R

reduce.dfR Documentation

Internal function of naturaList - reduce data.frame of occurrence for a minimal column length

Description

Reduce columns of occurrence data.frame required by classify_occ to facilitate internal operation

Usage

reduce.df(
  df,
  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",
  na.rm.coords = TRUE
)

Arguments

df

occurrence data frame provided in classify_occ

institution.code

institution.code = "institutionCode"

collection.code

collection.code = "collectionCode"

catalog.number

catalog.number = "catalogNumber"

year

year = "year",

date.identified

date.identified = "dateIdentified"

species

species = "species"

identified.by

identified.by = "identifiedBy"

decimal.latitude

decimal.latitude = "decimalLatitude"

decimal.longitude

decimal.longitude = "decimalLongitude"

basis.of.record

basis.of.record = "basisOfRecord"

media.type

media.type = "mediaType"

occurrence.id

occ.id = "occurrenceID"

na.rm.coords

na.rm.coords = TRUE

Value

a data frame with only the columns required for the naturaList package

See Also

classify_occ


naturaList documentation built on April 27, 2023, 5:09 p.m.