Skip to contents

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

Usage

gtclust_temp(df, method = "ward", scaling = "raw")

Arguments

df

an sf data.frame with polygons like features

method

linkage criterion in ward (default) or average, median

scaling

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

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