sample_locations_roads: Sample coordinates from roads

Description Usage Arguments

View source: R/sample-locations.R

Description

Sample coordinates from roads

Usage

1
2
sample_locations_roads(place_id, n_house, shapefile, noise = 1e-04,
  shapefile_id)

Arguments

place_id

numeric specifiying the ID of the region we are subsampling

n_house

numeric indicating the number of households

shapefile

sp class with all of the locations for each place id. In addition, we must have road shapefiles so shapefile is a list with both the tracts and the roads, tracts is the first object and roads the second.

noise

the standard deviation of how much we jitter the road locations in each direction

shapefile_id

optionally include a shapefile id for subsetting shapefile


spew documentation built on Nov. 17, 2017, 7:36 a.m.