Description Usage Arguments Value Note
View source: R/sample-locations.R
Sample the locations from a SpatialLines object
1 | samp_roads(n_house, new_shp, noise)
|
n_house |
number of households |
new_shp |
SpatialLines or Spatial Points object |
noise |
std deviation of Gaussian noise added to coordinates, default is .001 |
SpatialPoints object with coordinates for the n_house households
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
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.