gtclust_dist: Hierarchical clustering with contiguity constraints for point...

View source: R/gtclust.R

gtclust_distR Documentation

Hierarchical clustering with contiguity constraints for point data with distance threshold links

Description

This function take a data.frame and performs hierarchical clustering with contiguity constraints.

Usage

gtclust_dist(
  df,
  epsilon,
  method = "ward",
  scaling = "raw",
  display_progress = FALSE
)

Arguments

df

an sf data.frame with polygons like features

epsilon

maximum distance allowed

method

linkage criterion in ward (default) or average, median

scaling

default scaling of the features in zscore (default) or raw (i.e. no scaling)

display_progress

boolean to set progression bar

Value

an hclust like object with additional slots

data

The numeric data (eventually scaled) used for the clustering

centers

The protoypes of each tree nodes

leafs_geometry

geometries of the dendrogram leafs as an sfc list

geotree

geometries of the dendrogram no-leafs node as an sfc list


comeetie/gtclust documentation built on Sept. 17, 2024, 12:45 a.m.