df_validate | R Documentation |
This function takes two datasets (actual and expected) and validates them based on how many features match exact values at the id level as well as an aggregate
df_validate(actual, expected, features, key, matchTestPct = 0.98,
meanTestPct = 0.02)
actual |
a base R dataframe contain actual feature values |
expected |
a base R dataframe containing expected feature values |
features |
the features to be validated |
key |
The name of the primary key for actual and expected |
matchTestPct |
The percentage of exact, id level matches to pass test 1 |
meanTestPct |
The maximimun percent difference allowed between actual and expected features |
NOTE: The columns to be validate must have the same name in each dataset. If categorical features are included, they will be converted to integer values so means can be established. Integer order is determined by an ascending sort of the categorical variable.
A base R dataframe containing one row per feature with match and mean validation data
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.