generic cumulative_events generator

make_cumulative_events(cases, dates, eventtype, alpha3, ProvinceStateName)

Arguments

cases

numeric vector

dates

vector

eventtype

character(1) should be "confirmed" or "deaths"

alpha3

character(1) country code not checked

ProvinceStateName

character(1)

Value

a list with counts and dates

Examples

# ec = jhu_data()
# ber = ec[which(ec$nuts_3 == "Bergamo"),]
# mber = make_cumulative_events( cases = ber$cases, dates = ber$date, 
#  eventtype = "confirmed", alpha3 = "ITA", ProvinceStateName = "Bergamo")
# plot(mber)