assign_schools: Assign schools to a synthetic population.

Description Usage Arguments Value References

View source: R/schools.R

Description

Assign schools to a synthetic population.

Usage

1
2
assign_schools(people, schools, weightSchools = weight_dists,
  distFun = haversine)

Arguments

people

data frame of synthetic people

schools

list with public and private school data frames

weightSchools

Function to weight the schools

distFun

Function to compute distance between schools and agents

Value

a column of school assignments by school ID

References

See PUMS CODEBOOK: http://www2.census.gov/programs-surveys/acs/tech_docs/pums/data_dict/PUMS_Data_Dictionary_2010-2014.pdf


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