View source: R/LabourMarketAreas.R
AssignSingleComToSingleLma | R Documentation |
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)
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. |
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 |
This function can be called before the call to the function AssignLmaName.
Daniela Ichim, Luisa Franconi
findClusters
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.