format_nyt: Format New York Times COVID-19 County Level Data

Description Usage Arguments Value Examples

View source: R/nyt-data.R

Description

This function is for formatting specific issues with the data being reported by the NYT county data in this repo

Usage

1
2
3
4
5
6
7
format_nyt(
  df,
  distribute_unknowns = TRUE,
  skip_assignment = NULL,
  na_fill = FALSE,
  seed = 1998
)

Arguments

df

the result of calling get_nyt()

distribute_unknowns

logical. Distribute cases in "Unknown" counties to actual counties. Default is TRUE

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 1998

Value

a data frame with additionally formatted data

Examples

1
2
3
4
5
library(covidmap)

df_raw <- get_nyt()

df <- format_nyt(df_raw)

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