Learn R Programming

LabourMarketAreas (version 3.4)

mergeCluster: mergeCluster

Description

This function updates clusterData by merging cluster1 and cluster2.

Usage

mergeCluster(clusterData, cluster1, cluster2)

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

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.

Author

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

See Also

findClusters