temporal_resolution: Clean data based on temporal resolution

Description Usage Arguments samplePassData sampleFailData targetDWCField checkCategory Examples

View source: R/quality_checks.R

Description

Clean data based on temporal resolution

Usage

1
temporal_resolution(bddata, res = "Day")

Arguments

bddata

Bio diversity data in a data frame

res

restriction of records with/without data, month, year fields

samplePassData

When resolution is day, records with day specified will pass.

sampleFailData

When resolution is month, records with NA/empty month specified will fail.

targetDWCField

day, month, year

checkCategory

temporal

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
if(interactive()){

library(rgbif)
occdat <- occ_data(
  country = 'AU', # Country code for australia
  classKey = 359, # Class code for mammalia
  limit = 50 # Get only 50 records
)
myData <- occdat$data
responses <- temporal_resolution(myData, 'Day')

}

vijaybarve/bdclean documentation built on Oct. 8, 2021, 9:18 p.m.