
Last chance! 50% off unlimited learning
Sale ends in
Combine information from the regionTrain
and the regionPopulation
data sets.
preprocessInputData(trainData, populationData)
data frame
data frame
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)
Resulting data set can be used as input for the COVID-19 simulations of the
tuneRegionModel
function.
# 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