View source: R/new_from_cum_by_fip.R
new_from_cum_by_fip | R Documentation |
Problem if more than one place has NA as FIPS code. covidDownload handled that before calling this. Assumes dates are consecutive (no breaks) but need not be sorted by date beforehand. If there is a gap, the new cases is the change from the prior date, whether that was one day prior or longer. In other words, it is new cases since the last available date for that location.
new_from_cum_by_fip(cum, fip, date)
cum |
Cumulative cases as of date |
fip |
place, such as FIPS code from Census |
date |
Dates that can be sorted, ideally with no gaps in dates for a given place |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.