mean location for spherical (longitude/latitude) coordinates that deals with the angularity. I.e., the mean of longitudes -179 and 178 is 179.5
methods
geomean(xy, w)
Arguments
xy: matrix with two columns (longitude/latitude), or a SpatialPoints or SpatialPolygons object with a longitude/latitude CRS
w: weights (vector of numeric values, with a length that is equal to the number of spatial features in x