latestcontagiouspercap: By county, calc contagious per capita as sum of new cases/cap...

View source: R/latestcontagiouspercap.R

latestcontagiouspercapR Documentation

By county, calc contagious per capita as sum of new cases/cap in past __ days

Description

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

Usage

latestcontagiouspercap(x, countylist = NULL, dayscontagious = 14)

Arguments

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

Value

Returns named list of recent cumulative new cases per capita, one per county


ejanalysis/covidcountyshinyapp documentation built on Aug. 31, 2022, 7:46 a.m.