Hello everybody,
does anyone know an easy/possible function/way/method/package to cluster spatial objects (polygons in my case, a grid of 500mx500m cells) with an equal number of objects per cluster using QGIS or R?
I'm looking for something like ArcGIS's Grouping analysis tool (http://pro.arcgis.com/en/pro-app/tool-reference/spatial-statistics/how-grouping-analysis-works.htm).
I'm attaching an example of what I mean but, in this example, the number of cells per cluster is not the same....
Regards