make_tibble_from_output | R Documentation |
Convert module output object into tibble
make_tibble_from_output(
output,
output_name = "value",
index_col = "idx",
ref_date = NULL,
time_step = "day"
)
output |
Module input object. List with two elements:
|
output_name |
string. Name to be given to the |
index_col |
string. Name of the index column included in the output.
If a |
ref_date |
Date. Optional. Date of the first data entry in |
time_step |
string. Time between two consecutive incidence datapoints.
"day", "2 days", "week", "year"... (see |
tibble
## Basic usage of make_tibble_from_output
smoothed_incidence <- smooth_incidence(
incidence_data = HK_incidence_data$case_incidence,
smoothing_method = "LOESS"
)
smoothed_incidence_tibble_1 <- make_tibble_from_output(smoothed_incidence)
## Advanced usage of make_tibble_from_output
smoothed_incidence_tibble_2 <- make_tibble_from_output(
output = smoothed_incidence,
output_name = "incidence",
ref_date = HK_incidence_data$date[1]
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.