repeating_digits: Flag repeating digits

Description Usage Arguments Details Value Author(s) Examples

Description

Runs quality check of finding repeated digits and flags accordingly.

Usage

1
repeating_digits(gbif_data)

Arguments

gbif_data

Dataframe from GBIF with two mandatory fields; decimalLatitude and decimalLongitude.

Details

The function runs a quality check on two fields of GBIF data - decimalLatitude and decimalLongitude. Checks if the decimal values have repeated values at the end of the value. Repeated values might mean error in digitisation or conversions of records

Value

Same dataframe with two additional columns; latRepeatCount and longRepeatCount. Both shows the number of digits that are repeating

Author(s)

thiloshon <thiloshon@gmail.com>

Examples

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

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