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.
AssignSingleComToSingleLma(lma,comID,lmaID,dat)
The new labour market partition. A list of three components named:
A data.table with three variables: community, cluster, residents
A data.table with three variables: cluster_live, cluster_work, amount
A data.table with three variables: cluster, amount_live, amount_work
The partition to be modified. A list of three components named: clusterList, LWClus and marginals, respectively. See the output of the findClusters function.
The identifier of the community to be assigned.
The identifier of the labour market area where comID has to be assigned.
The initial commuting matrix between communities. A data.table containing the variables community_live, community_work and amount.
Daniela Ichim, Luisa Franconi
findClusters