Description Usage Arguments Value Examples
View source: R/get_future_indicators.R
Get future infection_rate, removed_rate, active_cases and confirmed cases.
1 | get_future_indicators(indicators, velocity, Beginning_Time)
|
indicators |
dataframe that stores indicators calculate by get_indicators():
|
velocity |
A list contains infection_rate_velocity, removed_rate_velocity, and 2 corrected vector c(T, M) used to calculate the above 2 indicators which may be needed in later calculation. |
Beginning_Time |
the selection of beginning time, which must be in the formate "%y-%m-%d" as a character. |
dataframe with 4 predicted indicators:
date: the exact day in the formate "%y-%m-%d" as a character
infection_rate.pre: prediction result of infection rate
removed_rate.pre: prediction result of removed_rate
active_cases.pre: prediction result of active_cases
confirmed.pre: prediction result of confirmed cases All of these data is calculated from the Beginning_Time.
1 2 3 4 5 | Beginning_Time <- "2020-01-29"
M <- 5
indicators <- get_indicators(DemoPreTurningPointsCOVID19::COVID19_CN)
velocity <- calc_velocity(indicators, M, Beginning_Time)
pre_data <- get_future_indicators(indicators, velocity, Beginning_Time)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.