Check observations are in the correct format
Arguments
- obs
A
data.frame
with the following variables:date
,cases
,seq_voc
, andseq_total
,cases_available
, andseq_available
.seq_available
andcase_available
must be uniquely define data rows but other rows can be duplicated based on data availability. This data format allows for multiple versions of case and sequence data for a given date with different reporting dates. This is important when using the package in evaluation settings or in real-time where data sources are liable to be updated as new data becomes available. See germany_covid19_delta_obs for an example of a supported data set.
See also
Functions used for checking inputs
check_dataframe()
,
check_param()
,
check_quantiles()
Examples
obs <- latest_obs(germany_covid19_delta_obs)
check_observations(obs)