spsample-methods {sp} | R Documentation

## sampling point locations in (or on) a spatial object

### Description

sampling point locations in (or on) a spatial object

### Methods

x = "Spatial"
  sample in the bbox of `x`
x = "Line"
  sample on a line
x = "Polygon"
  sample in an Polygon
x = "Polygons"
  sample in an Polygons object, consisting of possibly multiple Polygon objects (and holes!)
x = "SpatialPolygons"
  sample in an SpatialPolygons object; sampling takes place over all Polygons objects present, use subsetting to vary sampling intensity (density)
x = "SpatialGrid"
  sample in an SpatialGrid object
x = "SpatialPixels"
  sample in an SpatialPixels object

### See Also

spsample

[Package sp version 0.7-12 Index]