View source: R/r6_DBTable_v9.R
validator_field_contents_csfmt_rts_data_v2 | R Documentation |
Validates that data contents conform to the csfmt_rts_data_v2 schema specification. This validator checks that granularity_time and granularity_geo fields contain valid values according to the surveillance data format requirements for version 2.
validator_field_contents_csfmt_rts_data_v2(data)
data |
A data.frame or data.table containing the data to validate |
TRUE if data is valid for csfmt_rts_data_v2, FALSE otherwise (with error attribute)
# Valid data for csfmt_rts_data_v2
valid_data_v2 <- data.frame(
granularity_time = c("date", "isoyearweek", "total"),
granularity_geo = c("nation", "county", "municip"),
stringsAsFactors = FALSE
)
validator_field_contents_csfmt_rts_data_v2(valid_data_v2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.