dc_validation_country_countrycode_inconsistent: Data check validation_country_countrycode_inconsistent Check...

Description Usage Arguments Format samplePassData sampleFailData targetDWCField checkCategory References Examples

View source: R/dc_validation_country_countrycode_inconsistent.R

Description

This data check answers: "Does country matches country code?" question.
Data check will pass if Given country matches country code. and will fail if Given country doesn't match country code..
Dimension of this data check is and it's flagging type is: FLAG
Example of entries that will pass: country="Australia",countryCode="GM", such data check would return TRUE.
Example of entries that will fail: country="Australia",countryCode="AU", such data check would return FALSE.

Usage

1

Arguments

TARGET

a vector of country information. country name (checked against data_countries reference dataset).

TARGET2

a vector of country code information. country name (checked against data_countries reference dataset).

Format

An object of class function to perform a specific data check.

samplePassData

Given country matches country code.

sampleFailData

Given country doesn't match country code.

targetDWCField

country

checkCategory

location

References

None

Examples

1
perform_dc(data_bats, 'validation_country_countrycode_inconsistent')

bd-R/bdchecks documentation built on Oct. 8, 2021, 5:10 p.m.