I want to convert a raster to multi-part polygons, using the raster value to determine which polygon each cell becomes a part of. I have provided an example of what I am looking to achieve below, where each cell of the raster is assigned to a single multi-part polygon. If I split the cell values into five intervals, I would want five multipart polygons.
I have attempted to use the "Raster to Polygon" tool in ArcMap, but was unsuccessful because no matter how I used to raster calculator to get rid of decimal points on the raster, decimals continued to remain. Is there a way to do this in R?