# read data for confirmed cases
data <- covid19.data("ts-confirmed")
# compute totals per location for all the countries
# \donttest{
tots.per.location(data)
# }
# compute totals per location for 'Italy'
tots.per.location(data,geo.loc="Italy")
# compute totals per location for 'Italy' and 'Germany'
tots.per.location(data,geo.loc=c("Italy","Germany"))
Run the code above in your browser using DataLab