expand_week: Expands truth for weeks

Description Usage Arguments Value

View source: R/expand_truth.R

Description

The week target is peculiar because MMWR weeks run from 1-52 (or 53 depending on the year) and week 1 is sequentially, immediately after week 52 (or 53).

Usage

1
expand_week(truth, expand, week53 = F)

Arguments

truth

A data.frame with a single row and, at minimum, columns unit and value

expand

The number of weeks to expand around the observed truth.

week53

A logical value (default 'FALSE') indicating whether to include MMWR week 53 in the expanded truth

Value

A data.frame with the same columns as 'truth' but additional rows around the observed value.


jarad/FluSight documentation built on Oct. 24, 2020, 9:58 p.m.