keep_poly: Keep only spatial polygons

Description Usage Arguments Value Examples

Description

Keep only SpatialPolygons from a spatial object.

Usage

1
keep_poly(my_poly)

Arguments

my_poly

SpatialCollections, SpatialPolygons, SpatialPoints, or SpatialLines object

Value

SpatialPolygons object

Examples

1
2
3
4
par(mfrow = c(1, 2))
plot(spatialCollEx, col = "blue", main = "Spatial Collections Object")
poly_only <- keep_poly(spatialCollEx)
plot(poly_only, col = "blue", main = "Spatial Polygon Only")

IceCast documentation built on June 24, 2019, 9:03 a.m.