Skip to contents

Subset observations data table for either modelled dates or not-modelled earlier dates.

Usage

subset_obs(ord_obs, max_delay, internal_timestep, reference_subset)

Arguments

ord_obs

The observations data.table to be subset, as pulled from the result of calling epinowcast() and coerced to a data table.

max_delay

Whole number representing the maximum delay in units of the timestep.

internal_timestep

A numeric value representing the number of days in the timestep, e.g. 7 when the timesteps are weeks.

reference_subset

String giving a relational operator to subset ord_obs by reference date; e.g. > to keep the modelled reference dates from after the max_delay.

Value

A data.frame subset for the desired observations