Description Usage Arguments Value Examples
View source: R/calc_velocity.R
Compute the velocity of infection rate K change and completion rate I change.
1 | calc_velocity(indicators, M, Beginning_Time)
|
indicators |
dataframe that stores indicators calculate by get_indicators():
|
M |
the selection of time window. |
Beginning_Time |
the selection of beginning time, which must be in the formate "%y-%m-%d" as a character. |
A list contains 4 elements:
infection_rate_velocity: the velocity of K.
removed_rate_velocity: the velocity of I.
corr.infection: vvector of corrected M_K and T_K.
corr.removed: vector of corrected M_I and T_I. These 2 corrected vector in the format of "c(T, M)" used to calculate the above 2 indicators which may be needed in later calculation.
1 2 3 4 | Beginning_Time <- "2020-01-29"
M <- 5
indicators <- get_indicators(DemoPreTurningPointsCOVID19::COVID19_CN)
velocity <- calc_velocity(indicators, M, Beginning_Time)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.