Extract part(s) of SpatialPolygonsDataFrame
Hi,
I only need, for now, to work on two areas: Burgundy and Centre, I would like to extract those two areas from the France file, I tried, na?vely, Centre <- France[France$NAME_1=="Centre", ]
try:
Centre <- France[France at data$NAME_1=="Centre",]
PS: I found quite a lot of information on points, ploygons, or lines, but few on spatialpolygonsdataframe besides they are "a set of spatial polygons", Any reference on their inside structure ?
see:
?SpatialPolygonsDataFrame
A SpatialPolygonsDataFrame is made up of a data.frame and an object of class SpatialPolygons, which is a list of objects of class Polygons, which is made up of a list with Polygon class objects. You can use getSlots to list the available slots of the various object types.
?getSlots
Regards, Carson