mergeCluster: mergeCluster

View source: R/LabourMarketAreas.R

mergeClusterR Documentation

mergeCluster

Description

This function updates clusterData by merging cluster1 and cluster2.

Usage

mergeCluster(clusterData, cluster1, cluster2)

Arguments

clusterData

List (three components) containing all defining information on the current clusters found by the algorithm.

cluster1

Cluster ID to be merged. An unique positive integer.

cluster2

cluster ID to be merged. An unique positive integer.

Value

A cluster data object, i.e. a list of three components:

ClusterList

data.table of three columns: community, cluster, residents

LWClus

data.table of three columns; cluster_live, cluster_work and amount

marginals

data.table of three columns: cluster, amount_live, amount_work

Note

This function is called and used internally by the main function findClusters.

Author(s)

Daniela Ichim, Luisa Franconi, Michele D'Alo', Guido van den Heuvel

See Also

findClusters


LabourMarketAreas documentation built on Oct. 10, 2023, 5:07 p.m.