Description Usage Arguments See Also
Produces warnings if any checks fail (stays silent on success).
This function is simply a wrapper for several calls to data_check_table
and data_foreign_key
. Rules are designed to ensure:
primary keys are unique and non-missing
all required variables are present
variables only contain prescribed values
foreign keys are present in relevant primary key table (e.g., all sale$cust_id can be found in cust$cust_id)
1 | data_check_standard(cust, lic, sale, sale_year1 = 2009)
|
cust |
data frame: customer table (primary key = "cust_id") |
lic |
data frame: license types table (primary key = "lic_id") |
sale |
data frame: transactions table (foreign keys = "lic_id", "cust_id") |
sale_year1 |
First allowed year for sale dates |
Other functions to check data format:
variable_allowed_dates()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.