I'm using R's summarize function in the sf package to dissolve the boundaries of some polygons, but I'm having problems as it returns an error in some cases. To give a concrete example, when I try to dissolve the district boundaries of the state of California in the 
Created on 2023-01-15 with reprex v2.0.2
