Simple way to subset SpatialPolygonsDataFrame (i.e. delete polygons) by attribute in R

后端 未结 5 598
星月不相逢
星月不相逢 2020-12-04 11:54

I would like simply delete some polygons from a SpatialPolygonsDataFrame object based on corresponding attribute values in the @data data frame so that I can plot a simplifi

5条回答
  •  眼角桃花
    2020-12-04 12:33

    As a second pointer: this does not work for shapefiles with "holes" in the shapes, because it is subsetting by index.

提交回复
热议问题