taxo_level: Clean data based on lower taxon level

Description Usage Arguments samplePassData sampleFailData targetDWCField checkCategory Examples

View source: R/quality_checks.R

Description

Clean data based on lower taxon level

Usage

1
taxo_level(bddata, res = "SPECIES")

Arguments

bddata

Bio diversity data in a data frame

res

The low rank of species required

samplePassData

When resolution is Species, Subspecies and Species will pass.

sampleFailData

When resolution is Species, Family or Genus or any lower ranks will fail.

targetDWCField

taxonRank

checkCategory

taxonomic

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
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 <- taxo_level(myData, 'SPECIES')

}

bd-R/bdclean documentation built on Oct. 7, 2021, 1:48 a.m.