Learn R Programming

LabourMarketAreas (version 3.4)

AssignSingleComToSingleLma: AssignSingleComToSingleLma

Description

This function assigns a community to a given labour market area. It simulates a manual assignment. It might be used inside the fine tuning process.

Usage

AssignSingleComToSingleLma(lma,comID,lmaID,dat)

Value

The new labour market partition. A list of three components named:

clusterList

A data.table with three variables: community, cluster, residents

LWClus

A data.table with three variables: cluster_live, cluster_work, amount

marginals

A data.table with three variables: cluster, amount_live, amount_work

Arguments

lma

The partition to be modified. A list of three components named: clusterList, LWClus and marginals, respectively. See the output of the findClusters function.

comID

The identifier of the community to be assigned.

lmaID

The identifier of the labour market area where comID has to be assigned.

dat

The initial commuting matrix between communities. A data.table containing the variables community_live, community_work and amount.

Author

Daniela Ichim, Luisa Franconi

See Also

findClusters