I have a polygon which I want to split using overlapping polygons in order to create 3 polygons (with the original attributes) How can i achieve it using R ?
For sure you just need to do an
If you get a 5 features polygon is because your pol1 is overlaping five "colored" polygons. If you are looking for 3 polygon result, you should just dissolve blue/green polygons and yellow/pinky ones bufore. You can do it by assign them a unique ID,
group_by that ID and