assign_workplaces: Assign an ESRI workplace to synthetic population

Description Usage Arguments Value

View source: R/workplaces.R

Description

We look at the ESR variable from the synthetic people, which is the employment status recode. If values 1, 2, 4, and 5 are considered employed. We then randomly assign the person inside the county, with weights based on numbers of workers at the place. We return the ESRI ID of the workplace Note that in this way, workers do not cross borders.

Usage

1
assign_workplaces(people, workplaces)

Arguments

people

data frame of synthetic people produced by SPEW

workplaces

data frame of workplaces from ESRI

Value

column of workplace IDs for synthetic people


leerichardson/spew documentation built on May 21, 2019, 1:39 a.m.