Create seed
plane_seed.Rd
This function wraps the seed_engine to operate across all locations in the input signal.
Value
A named list
of length n, where multiple elements corresponding to seed characteristics and metadata for each of the n locations are nested in independent lists.
Examples
## read in example observed data and prep observed signal
hosp <- read.csv(system.file("extdata/observed/hdgov_hosp_weekly.csv", package = "rplanes"))
hosp$date <- as.Date(hosp$date, format = "%Y-%m-%d")
prepped_observed <- to_signal(hosp, outcome = "flu.admits", type = "observed", resolution = "weeks")
## prepare seed with no cut date
plane_seed(prepped_observed)
## prepare seed with cut date
plane_seed(prepped_observed, cut_date = "2022-10-29")