Starting from a shapefile containing a fairly large number (about 20000) of potentially partially-overlapping polygons, I\'d need to extract all the sub-polygons originated by i
Not sure if it helps you since it is not in R but I think there is a good way to solve this problem using Python. There is a library called GeoPandas (http://geopandas.org/index.html) which has allows you to easily do geo operations. In steps what you would need to do is the following:
The exact example is shown in the documentation.
Before operation - 2 Polygons
After operation - 9 Polygons
If there is anything unclear feel free to let me know! Hope it helps!