DC_countryMismatch

0th

Percentile

Data check countryMismatch Check if given country match given country code.

This data check answers: "Does country and country code match??" question. Data check will pass if Country name (dwc:country) and ISO country code (dwc:countryCode) match and will fail if Country name (dwc:country) and ISO country code (dwc:countryCode) do not match. Dimension of this data check is Consistency and it's flagging type is: FLAG Example of entries that will pass: country=Australia, countryCode=AU, such data check would return Passed. Example of entries that will fail: country=Australia, countryCode=4, such data check would return Failed.

Format

An object of class "dataCheck", see dataCheck for details.

samplePassData

Country name (dwc:country) and ISO country code (dwc:countryCode) match

sampleFailData

Country name (dwc:country) and ISO country code (dwc:countryCode) do not match

targetDWCField

country,countryCode

checkCategory

Location

References

None

Aliases
  • DC_countryMismatch
Examples
# NOT RUN {
performDC(DC = DC_countryMismatch, DATA = bdchecks::dataBats)
# }
Documentation reproduced from package bdchecks, version 0.1.7, License: GPL-3 | file LICENSE

Community examples

Looks like there are no examples yet.