DC_countryMismatch {bdchecks}R Documentation

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

Description

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

Examples

performDC(DC = DC_countryMismatch, DATA = bdchecks::dataBats)

[Package bdchecks version 0.1.7 Index]