DC_countryMismatch: Data check countryMismatch Check if given country match given...

Description Format samplePassData sampleFailData targetDWCField checkCategory References Examples

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

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

bdchecks documentation built on May 2, 2019, 4:24 a.m.