Spatial clustering of the coordinates
Examples
morie_spatial_cluster(morie_spatial(expand.grid(lon = 1:6, lat = 1:6)), k = 3)
#> [1] 2 2 2 2 1 1 2 2 2 2 1 1 2 2 2 1 1 1 3 3 3 1 1 1 3 3 3 3 1 1 3 3 3 3 1 1
Spatial clustering of the coordinates
morie_spatial_cluster(morie_spatial(expand.grid(lon = 1:6, lat = 1:6)), k = 3)
#> [1] 2 2 2 2 1 1 2 2 2 2 1 1 2 2 2 1 1 1 3 3 3 1 1 1 3 3 3 3 1 1 3 3 3 3 1 1