Description Usage Arguments Details Value Examples
Performs a test that a specific column has an expected sum.
1 | test_column_sum(df, col, sum_expected)
|
df |
A dataframe |
col |
The unquoted column name of the column you want to test |
sum_expected |
The expected sum of the column |
This function is good to utilize after performing joining operations to validate that no duplicates or missing values have been created.
The dataframe passed to the function.
1 2 | # Basic usage
test_column_sum(mtcars, wt, 102.952)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.