This function takes as input the shapefiles of two distinct sets of LMAs (on the same territory) and produces statistics to compare them.
LmaSpatialComparison(shape,shape_ref,lma.id="LMA")
The output is a data.table with statistics on the comparison of the two shapefiles.
Each row represents an association between an LMA in the shape partition (first argument) and an unique LMA in the shape_ref partition (second argument).
The output columns are as follows:
ID of the LMA unit in the shape partition (first argument)
ID of the LMA unita in the shape_ref partition (second argument)
area of the intersection of the two LMA units
area of the LMA unit in the shape partition (first argument)
area of the associated LMA unit is the shape_ref partition (second argument)
number of employees living in the LMA unit is the shape partition
number of employees working in the LMA unit in the shape partition
number of employees living in the LMA unit is the shape_ref partition
number of employees working in the LMA unit in the shape_ref partition
percentage of the intersection area over the area of the LMA unit in the shape partition
percentage of the intersection area over the area of the LMA unit in the shape_ref partition
Shapefile of the output of an LMA delineation process (sf object).
Shapefile of the output of an LMA delineation process (sf object).
Column name of the column registering the LMA (the same in both shape files).
Daniela Ichim, Luisa Franconi
findClusters, CreateLmaShape