New answers tagged data-management
Aggregate polygons tool is probably what you want? It can join polygons within the same layer based upon a defined distance tolerance. You can also set minimum size of polygons and holes to retain.
With the updates in the packages I would suggest the following: shape <- shape[!is.na(shape@data$col),]
Top 50 recent answers are included