View source: R/latestcontagiouspercap.R
latestcontagiouspercap | R Documentation |
For each county in countylist, find most recent date and the sum last N days of counts of new cases per capita there where N is dayscontagious
latestcontagiouspercap(x, countylist = NULL, dayscontagious = 14)
x |
from covidDownload() a data.frame with fullname, new, date, pop |
countylist |
vector of county names like "Montgomery County, Maryland" as found in unique fullname entries in covidDownload() |
dayscontagious |
how many recent days of new cases to add together, as a way to approximate how many people are currently still contagious |
Returns named list of recent cumulative new cases per capita, one per county
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.