default_fill_missing_obs: Temporary function to support the transition to full support...

View source: R/preprocessing.R

default_fill_missing_obsR Documentation

Temporary function to support the transition to full support of missing data.

Description

[Deprecated]

Usage

default_fill_missing_obs(data, obs, obs_column)

Arguments

data

A ⁠<data.frame>⁠ of confirmed cases (confirm) by date (date). confirm must be numeric and date must be in date format. Optionally this can also have a logical accumulate column which indicates whether data should be added to the next data point. This is useful when modelling e.g. weekly incidence data. See also the fill_missing() function which helps add the accumulate column with the desired properties when dealing with non-daily data. If any accumulation is done this happens after truncation as specified by the truncation argument.

obs

A list of options as generated by obs_opts() defining the observation model. Defaults to obs_opts().

obs_column

Character (default: "confirm"). If given, only the column specified here will be used for checking missingness. This is useful if using a data set that has multiple columns of hwich one of them corresponds to observations that are to be processed here.

Value

data set with missing dates filled in as na values


epiforecasts/EpiNow2 documentation built on Dec. 10, 2024, 5:32 p.m.