samp_roads: Sample the locations from a SpatialLines object

Description Usage Arguments Value Note

View source: R/sample-locations.R

Description

Sample the locations from a SpatialLines object

Usage

1
samp_roads(n_house, new_shp, noise)

Arguments

n_house

number of households

new_shp

SpatialLines or Spatial Points object

noise

std deviation of Gaussian noise added to coordinates, default is .001

Value

SpatialPoints object with coordinates for the n_house households

Note

When the class is Spatial Points, the following sampling method takes place: "When x is of a class deriving from Spatial-class for which no spsample-methods exists, sampling is done in the bounding box of the object, using spsample.Spatial" s This was added because the Puerto Rico intersection gave SpatialPoints


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