LmaSpatialComparison: LmaSpatialComparison

LmaSpatialComparisonR Documentation

LmaSpatialComparison

Description

This function takes as input the shapefiles of two distinct sets of LMAs (on the same territory) and produces statistics to compare them.

Usage

LmaSpatialComparison(shape,shape_ref,lma.id="LMA")

Arguments

shape

Shapefile of the output of an LMA delineation process (sf object).

shape_ref

Shapefile of the output of an LMA delineation process (sf object).

lma.id

Column name of the column registering the LMA (the same in both shape files).

Value

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:

shape_lma

ID of the LMA unit in the shape partition (first argument)

shape_ref_lma

ID of the LMA unita in the shape_ref partition (second argument)

area_intersection

area of the intersection of the two LMA units

shape_area

area of the LMA unit in the shape partition (first argument)

shape_ref_area

area of the associated LMA unit is the shape_ref partition (second argument)

shape_EMP_live

number of employees living in the LMA unit is the shape partition

shape_EMP_work

number of employees working in the LMA unit in the shape partition

shape_ref_EMP_live

number of employees living in the LMA unit is the shape_ref partition

shape_ref_EMP_work

number of employees working in the LMA unit in the shape_ref partition

perc_intersection_shape

percentage of the intersection area over the area of the LMA unit in the shape partition

perc_intersection_shape_ref

percentage of the intersection area over the area of the LMA unit in the shape_ref partition

Author(s)

Daniela Ichim, Luisa Franconi

See Also

findClusters, CreateLmaShape


LabourMarketAreas documentation built on Oct. 10, 2023, 5:07 p.m.