subset_incidence_data: subset incidence data for weeks of interest

View source: R/forecasting_practical.R

subset_incidence_dataR Documentation

subset incidence data for weeks of interest

Description

subset_incidence_data takes the incidence data and subsets it for the weeks of interest.

Usage

subset_incidence_data(incidence_data, current_week, n_weeks_prior)

Arguments

incidence_data

data frame extracted by extract_incidence

current_week

numeric vector of length 1: week number of the current week

n_weeks_prior

numeric vector of length 1: number of weeks' previous data to use

Value

data frame for weeks of interest


c97sr/learnidd documentation built on Jan. 12, 2025, 4:24 p.m.