AssignSingleComToSingleLma {LabourMarketAreas} | R Documentation |
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)
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. |
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 |
Note
This function can be called before the call to the function AssignLmaName.
Author(s)
Daniela Ichim, Luisa Franconi
See Also
findClusters