Description Usage Arguments Value
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.
1 | assign_workplaces(people, workplaces)
|
people |
data frame of synthetic people produced by SPEW |
workplaces |
data frame of workplaces from ESRI |
column of workplace IDs for synthetic people
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.