reports_assertions_tests | R Documentation |
Functions to create reports, assert, and test NORDCAN datasets and columns
using functionality from package dbc
.
report_dataset_is_valid(x, dataset_name)
assert_dataset_is_valid(x, dataset_name)
assert_processed_cancer_record_dataset_is_valid(x)
assert_unprocessed_cancer_record_dataset_is_valid(x)
assert_general_population_size_dataset_is_valid(x)
assert_general_population_death_count_dataset_is_valid(x)
test_dataset_is_valid(x, dataset_name)
report_dataset_columns_are_valid(x, column_names)
assert_dataset_columns_are_valid(x, column_names)
test_dataset_columns_are_valid(x, column_names)
report_column_is_valid(x, column_name)
assert_column_is_valid(x, column_name)
test_column_is_valid(x, column_name)
report_national_population_life_table_is_valid(x)
assert_national_population_life_table_is_valid(x)
report_unprocessed_cancer_death_count_dataset(x)
assert_unprocessed_cancer_death_count_dataset(x)
x |
dataset to report / assert / test on |
dataset_name |
name of a NORDCAN dataset; must be one of the elements of output of
|
column_names |
names of columns to check |
column_name |
name of column to check |
report_
functions produce a data.frame
describing whether tests passed,
and if not, how they failed. See e.g. [dbc::expressions_to_report]
.
assert_
functions raise an error if any test in the corresponding report
did not pass. See e.g. [dbc::report_to_assertion]
.
test_
functions return TRUE
if all tests in the corresponding report
passed.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.