[R-sig-Geo] how to filter a shapefile ?

Arnald Marcer arnald.marcer at uab.cat
Thu Sep 16 12:58:14 CEST 2010


Can anyone give me a hint on how to extract/filter/subset
polygons from a shapefile based on an attribute of its dbf
table ?


shapefile: world.shp
attributes of its dbf table: ID, AREA, COUNTRY, ...

How can I plot a shapefile with only countries above a certain AREA value ?

Thank you very much,

Arnald Marcer

More information about the R-sig-Geo mailing list