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.
data frame of synthetic people produced by SPEW
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.