spatial_cluster: Spatially constrained hierarchical clustering of a...

Description Usage Arguments Value

Description

Clusters the dockless_df objects in a dockless_dfc with spatially constrained hierarchical clustering.

Usage

1
spatial_cluster(data, grid, area, K, omega = seq(0, 1, 0.1))

Arguments

data

object of class dockless_dfc.

grid

grid cells as object of class sf with polygon geometry, in which each cell refers to the spatial location of each dockless_df object in the dockless_dfc. Must contain a column named intensity, which provides the number of pick-ups per grid cill.

area

object of class sf representing the system area.

K

vector of integers specifying which values of k, the number of clusters, should be tested.

omega

vector of values specifying which values of alpha, the mixing parameter, should be tested.

Value

Returns a list of 2 with one element being a numeric vector of cluster indices that specifies for each of the given dockless_df objects to which cluster it belongs, and the second element being the geographical outines of each cluster, bundled in an object of class sf with polygon geometry.


luukvdmeer/dockless documentation built on May 10, 2019, 1:24 p.m.