Learn R Programming

SPOT (version 2.1.10)

preprocessCdeInputData: preprocessCdeInputData

Description

Prepare Ced Data for SIR modeling

Usage

preprocessCdeInputData(cdeData)

Arguments

cdeData

data frame

Value

A large list containing the following information (3 lists) for each region:

date

Date

confirmed

num Number of confirmed cases (cumulative)

fatalities

num Number of fatalities (cumulative)

Details

Resulting data set can be used as input for the COVID-19 simulations of the tuneRegionModel function.

Examples

Run this code
# NOT RUN {
x <- preprocessCdeInputData(cde20200813)
## Plot confirmed cases from the first country:
p <- plot(x[[1]]$date, x[[1]]$confirmed)
# }

Run the code above in your browser using DataLab