get_state_from_cdp: Function to just get a single state given cdp

get_state_from_cdpR Documentation

Function to just get a single state given cdp

Description

Function use compact csse data (c,d,p) to return a datatable for a specific state only

Usage

get_state_from_cdp(
  cdp,
  state = NULL,
  fix_cumul = FALSE,
  type = c("mid", "low", "high")
)

Arguments

cdp

compact version of cases, deaths, population as return from cssedata(return_compact=T)

state

string (default is NULL, will return all states), otherwise specifiy a specifc state abbreviation (i.e. "TX") or state name (i.e. "Texas")

fix_cumul

(logical, default=F); set to TRUE to fix cumulative data

type

(string, default="mid"); strategy to fix cumulative data

Examples

get_state_from_cdp(cdp, "MD")

lmullany/rawcoviddata documentation built on March 21, 2023, 10:04 a.m.