Learn R Programming

COVID19 (version 2.0.3)

ds_check_format: Check Data Source Format

Description

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).

Usage

ds_check_format(x, level)

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

Run this code
# NOT RUN {
# check format of the 'pcmdpc_git' data source
x <- COVID19:::pcmdpc_git(cache = FALSE, level = 1)
ds_check_format(x, level = 1)

# }
# NOT RUN {
# }

Run the code above in your browser using DataLab