Skip to contents

Checks that processed data columns date, cases_new, cases_total, deaths_new, deaths_total and that region level have the correct types.

Usage

expect_processed_cols(data, level = "1", localised = TRUE)

Arguments

data

The data to check

level

character_array the level of the data to check

localised

logical to check localised data or not, defaults to TRUE.

See also

Functions used for testing data is cleaned and processed correctly expect_clean_cols(), expect_columns_contain_data(), test_cleaning(), test_download_JSON(), test_download(), test_processing(), test_return()