distribute_unassigned_state: Distribute unassigned values to counties based on multinomial...

Description Usage Arguments Value

View source: R/nyt-data.R

Description

This function is intented to be used under the hood of wrapper functions that distributes unassigned values for a specific dataset. For example, distribute_unassigned_nyt().

Usage

1
2
3
4
5
6
7
distribute_unassigned_state(
  df,
  location_to_distribute,
  assign_values_to = NULL,
  na_fill = FALSE,
  seed = 1998
)

Arguments

df

data.frame of a single state

location_to_distribute

unique id of location whose values will be distributed

assign_values_to

unqiued ids of locations that will be recieving the unassigned values. vector of ids or if NULL all non NA fips values are used. Default is NULL

na_fill

For days in which there are no reported data, how to fill in the NAs

seed

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

Value

data frame


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