Checks for duplicate reference date report dates, missing columns, report dates beyond the final reference date, and missing combinations of delays and reports.
Arguments
- data
Data.frame in long tidy form with reference dates, report dates, and case counts, used to create a
reporting_triangleobject.- delays_unit
Character string specifying the temporal granularity of the delays. Options are
"days","weeks","months","years". For the matrix method, this is simply passed as an item in thereporting_triangleobject which will later be used to create a nowcast data.frame. For the data.frame method, this is used to compute the delay in terms of the specified unit, and to expand the combinations of reference dates and delays to the complete set of combinations in the reporting triangle. Default is"days".
