Description Usage Arguments Value See Also Examples
Extract the coordinates of a Spatial object
1 2 |
x |
SpatialPolygons*, SpatialLines*, or SpatialPoints* object |
sepNA |
logical. If |
... |
additional arguments, none implemented |
Matrix with 6, (5 SpatialLines), or 3 (SpatialPoints) columns. object (sequential object number) part (sequential part number within the object; not for SpatialPoints), cump (cumulative part number; not for SpatialPoints), hole (is this a hole or not; only for SpatialPolygons), x (x coordinate or longitude), y (y coordinate or latitude)
1 2 3 4 | if (require(rgdal) & require(rgeos)) {
p <- shapefile(system.file("external/lux.shp", package="raster"))
x <- geom(p)
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.