Excuse me, I met a problem about convert SpatialPolygonsdataframe to SpatialPolygons. Could please help me? Thanks very much.
water_poly<-rgdal::readOGR ("F:/water_polygons.shp")
The SpatialPolygonsdataframe after reading the shape file is shown in the figure below:

How should I write the code to convert SpatialPolygonsdataframe to SpatialPolygons?
best regards,
Sue