Description Usage Arguments Format samplePassData sampleFailData targetDWCField checkCategory References Examples
View source: R/dc_validation_country_countrycode_inconsistent.R
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
.
1 | dc_validation_country_countrycode_inconsistent(TARGET = NULL, TARGET2 = NULL)
|
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). |
An object of class function to perform a specific data check.
Given country matches country code.
Given country doesn't match country code.
country
location
None
1 | perform_dc(data_bats, 'validation_country_countrycode_inconsistent')
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.