Usage
get_r0(
dat,
daily_filter = 0,
total_filter = 50,
min_date = "2020-03-23",
corr_check = FALSE
)
Arguments
dat
Input dataset. Expects daily_cases
, total_cases
, and place
columns
daily_filter
Threshold for minimum daily cases. Default = 0
.
total_filter
Threshold for minimum total cases reported to date. Default = 50
.
min_date
Threshold for earliest date to report R_0. Default = "2020-03-23"
.
corr_check
Check for data corrections of X-times magnitude. Default is FALSE
Value
Pulls the time-series state-level testing data directly from covid19india.org. Expects columns named place
, daily_cases
, and total_cases
. Can specify corresponding variables through other arguments.
Examples
Run this code# NOT RUN {
get_r0(dat = get_nat_counts())
# }
# NOT RUN {
# }
Run the code above in your browser using DataLab