finalize_clusters: Make final clusters

Description Usage Arguments Value

View source: R/cluster_yields.R

Description

Make final clusters

Usage

1
finalize_clusters(processed_data, cluster_number, mixing_parameter)

Arguments

processed_data

sf; An sf object likely returned from make_cluster_data. Object should include the features to be clustered and their associated polygon geometries.

cluster_number

integer; number of clusters to be used.

mixing_parameter

numeric; Values to be passed as the alpha parameter in ClustGeo::hclustgeo which controls the weighting between the data and distance dissimilarity matrices. Value must be between 0 and 1.

Value

The sf object processed_data with a new column (cluster) giving the cluster designation for each row.


smmueller/plotdesignr documentation built on Jan. 5, 2022, 10:55 a.m.