identified_pre_event_flag: Flag records with incorrect event date, identification date...

Description Usage Arguments Details Value Author(s) Examples

Description

The date of identification (dwc:dateIdentified) is earlier than the event date dateIdentified < eventDate

Usage

1

Arguments

gbif_data

Dataframe from GBIF with two mandatory fields; dateIdentified and eventDate.

Details

The function runs a quality check to find if the date of identification is before date of occurance. This is not possible at all as identification can only be done on or after occurance.

Value

Same dataframe with two column; identifiedPreEventFlag, identifiedPreEventDiff

Author(s)

thiloshon <thiloshon@gmail.com>

Examples

1
2
dat <- rgbif::occ_data(scientificName = 'Ursus americanus')
flagged_dat <- identified_pre_event_flag(dat$data)

thiloshon/Biodiversity documentation built on May 20, 2019, 4:07 p.m.