Learn R Programming

SPOT (version 2.1.10)

preprocessInputData: preprocessInputData

Description

Combine information from the regionTrain and the regionPopulation data sets.

Usage

preprocessInputData(trainData, populationData)

Arguments

trainData

data frame

populationData

data frame

Value

A large list (313 elements, 1.3 MB) containing the following information (3 lists) for each of the 313 regions:

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 <- preprocessInputData(regionTrain, regionPopulation)
## Plot confirmed cases from the first country (Afghanistan):
p <- plot(x[[1]]$date, x[[1]]$confirmed)
# }

Run the code above in your browser using DataLab