Skip to contents

Extract forecast dates based on the availability of both case and sequence data.

Usage

extract_forecast_dates(posterior)

Arguments

posterior

A dataframe of posterior output as produced by fv_tidy_posterior(). For forecast dates to be extracted data with value_type == "cases" must be present.

Value

A data.frame containing at least two vectors: Data unavailable indicating the type of data that is missing, and date giving the date data was last available for.

Examples

p <- fv_example(strains = 2, type = "posterior")

extract_forecast_dates(p)
#>    Data unavailable       date
#> 1:            Cases 2021-06-26
#> 2:        Sequences 2021-06-12