View source: R/forecasting_practical.R
extract_incidence | R Documentation |
extract_incidence
takes the flu incidence matrix and extracts
the incidence for a given flu season and a given country.
extract_incidence(flu_data, country_code = "ISR", year = 2016)
flu_data |
matrix with flu incidence data |
country_code |
character vector of length 1: 3-letter country code |
year |
numeric vector of length 1: year to extract |
data frame with three columns: t: numeric vector of length 52/53 (depending on the year): index running from 1 to 52/53 time_name: character vector of the same length as t: week numbers of the data we've extracted incidence: numeric vector of the same length as t: incidence for those weeks
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.