Checks if the output of a data source function is correctly formatted. The function checks the FORMAT, NOT the DATA. Before submission, the data should be double checked by comparing with external data sources (e.g. Google search).

ds_check_format(x, level, ci = 0.95, verbose = TRUE)

Arguments

x

output of a data source function.

level

integer. Granularity level. 1: country-level data. 2: state-level data. 3: city-level data.

Value

logical.

Examples

if (FALSE) { # check format of the 'pcmdpc_git' data source x <- COVID19:::pcmdpc_git(cache = FALSE, level = 1) ds_check_format(x, level = 1) }