ryanzomorrodi / centr

A Package For Weighted and Unweighted Spatial Centers
https://ryanzomorrodi.github.io/centr/
Other
2 stars 0 forks source link

Empty geometries cause empty centers #11

Closed ryanzomorrodi closed 1 month ago

ryanzomorrodi commented 1 month ago

An empty geometry has NA coordinates and thus makes all other values it interacts with NA, yielding NA centers.

For now, I will set the behavior to throw an error, but maybe these geometries should be removed with a warning or a parameter na_fail should be offered to set if they should be removed.