Prepare announcements with CPI geographic dimension
Source:R/crosswalk.R
prepare_annunci_geography.RdMerges announcements with ESCO labels and a territorial mapping table to add the CPI (Centro per l'Impiego) field, then aggregates unique announcement counts by CPI, profession, and year.
Arguments
- ann
A data.table of announcements with columns
idesco_level_4,idcity,general_id, and year/month/day grab and expire date columns.- esco_mapping
A data.table from
read_esco_mapping(), containing at leastidesco_level_4andesco_level_4.- territoriale
A data.table with territorial classification. Must contain
COD_ISTAT,CPI, andCOD_REGIONE_PAUT.- regione
Integer region code to filter the territorial table. Defaults to
10L.