distribute_unassigned_nyt: Distribute cases and deaths from "Unknown" counties to...

Description Usage Arguments Value

View source: R/nyt-data.R

Description

This function is for handling the specific issues with the data being reported by the NYT in this repo, so there are some hard coded things, if the issues change, then this might no longer work.

Usage

1
2
3
4
5
6
7
8
distribute_unassigned_nyt(
  df,
  probdf,
  distribute_unknowns = FALSE,
  skip_assignment = NULL,
  na_fill = FALSE,
  seed = NULL
)

Arguments

df

data.frame of county level covid-19 data from NYT

probdf

data.frame. Data to be used as probabilities for assigning observations. required to have county fips codes.

distribute_unknowns

logical. If TRUE distribute all "Unknown" values for each state

skip_assignment

character vector. A vector of state fips codes to skip in the distribution of unknown cases.

na_fill

logical. default is FALSE

seed

integer. If set, used in set.seed().Default is NULL

Value

data frame


nset-ornl/covidmodeldata documentation built on June 3, 2020, 2:46 a.m.