Skip to content
library(innteamUtils)
# Loading required package: data.table

Introduction

The package contains several datasets that are useful in daily activities and have been processed from different sources or for practical usefulness.

Table of Contents

Currently the following sets are available:

  • geo_italia: a long-format table containing 4 NUTS levels from EUROSTAT for Italy.
  • decodifica_comuni: a wide-format table containing old and new Italian municipalities (and higher level denomination) names.
  • codice_ateco: a long-format table containing all NACE Rev.2 levels in Italian language.
  • agenzie_provincia: simple table containing the number of insurance agencies and subagents by Italian province. Strictly for internal use only.

Preview

Italian Geographic Levels

The dataset has 7904 observations and 5 columns.
Curated by Fabio Sgobio, Alejandro Abraham.

head(geo_italia)
#         nuts1    nuts2  nuts3          comune
# 1: Nord-ovest Piemonte Torino          Agliè
# 2: Nord-ovest Piemonte Torino         Airasca
# 3: Nord-ovest Piemonte Torino    Ala di Stura
# 4: Nord-ovest Piemonte Torino Albiano d'Ivrea
# 5: Nord-ovest Piemonte Torino          Almese
# 6: Nord-ovest Piemonte Torino         Alpette
#    Codice Comune formato numerico
# 1:                           1001
# 2:                           1002
# 3:                           1003
# 4:                           1004
# 5:                           1006
# 6:                           1007

Decodifica Comuni

The dataset has 9081 observations and 20 columns. Curated by Fabio Sgobio.

head(decodifica_comuni)
#    cod_istat_in             comune_in       comune_upper_in provincia_in
# 1:        29016             Contarina             CONTARINA       Rovigo
# 2:        29020                Donada                DONADA       Rovigo
# 3:        28024   Carrara San Giorgio   CARRARA SAN GIORGIO       Padova
# 4:        28025 Carrara Santo Stefano CARRARA SANTO STEFANO       Padova
# 5:        58121               Boville               BOVILLE         Roma
# 6:         5043            Colcavagno            COLCAVAGNO         Asti
#    provincia_upper_in aci_in regione_in regione_upper_in cap_a
# 1:             ROVIGO     RO     Veneto           VENETO     0
# 2:             ROVIGO     RO     Veneto           VENETO     0
# 3:             PADOVA     PD     Veneto           VENETO     0
# 4:             PADOVA     PD     Veneto           VENETO     0
# 5:               ROMA     RM      Lazio            LAZIO     0
# 6:               ASTI     AT   Piemonte         PIEMONTE     0
#    cod_istat_out           comune_out     comune_upper_out provincia_out
# 1:         29052           Porto Viro           PORTO VIRO        Rovigo
# 2:         29052           Porto Viro           PORTO VIRO        Rovigo
# 3:         28106          Due Carrare          DUE CARRARE        Padova
# 4:         28106          Due Carrare          DUE CARRARE        Padova
# 5:         58057               Marino               MARINO          Roma
# 6:          5121 Montiglio Monferrato MONTIGLIO MONFERRATO          Asti
#    provincia_upper_out regione_out regione_upper_out aci_out
# 1:              ROVIGO      Veneto            VENETO      RO
# 2:              ROVIGO      Veneto            VENETO      RO
# 3:              PADOVA      Veneto            VENETO      PD
# 4:              PADOVA      Veneto            VENETO      PD
# 5:                ROMA       Lazio             LAZIO      RM
# 6:                ASTI    Piemonte          PIEMONTE      AT
#    flg_capoluogo_out cap_j cap_final
# 1:                 0 45014     45014
# 2:                 0 45014     45014
# 3:                 0 35020     35020
# 4:                 0 35020     35020
# 5:                 0    47        47
# 6:                 0 14026     14026

Codice Ateco 2021

The dataset has 3145 observations and 6 columns.
Curated by Fabio Sgobio, Alejandro Abraham.

head(codice_ateco)
#                                                                          descrizione
# 1:                                                 AGRICOLTURA, SILVICOLTURA E PESCA
# 2: COLTIVAZIONI AGRICOLE E PRODUZIONE DI PRODOTTI ANIMALI, CACCIA E SERVIZI CONNESSI
# 3:                                   COLTIVAZIONE DI COLTURE AGRICOLE NON PERMANENTI
# 4:       Coltivazione di cereali (escluso il riso), legumi da granella e semi oleosi
# 5:                                         Coltivazione di cereali (escluso il riso)
# 6:                                         Coltivazione di cereali (escluso il riso)
#    cod_ateco_1               descrizione_ateco_1 cod_ateco_b cod_ateco_c
# 1:           A AGRICOLTURA, SILVICOLTURA E PESCA           A          AA
# 2:           A AGRICOLTURA, SILVICOLTURA E PESCA          01         A01
# 3:           A AGRICOLTURA, SILVICOLTURA E PESCA         011        A011
# 4:           A AGRICOLTURA, SILVICOLTURA E PESCA        0111       A0111
# 5:           A AGRICOLTURA, SILVICOLTURA E PESCA       01111      A01111
# 6:           A AGRICOLTURA, SILVICOLTURA E PESCA      011110     A011110
#    cod_ateco_a
# 1:           A
# 2:          01
# 3:        01.1
# 4:       01.11
# 5:     01.11.1
# 6:    01.11.10

Agenzie e Subagenti per Provincia Italiana

The dataset has 110 observations and 3 columns.
Curated by Fabio Sgobio, Carlo Cardinali, Alejandro Abraham

head(agenzie_provincia)
#    provincia agenzie subagenti
# 1:        AG      66       646
# 2:        AL     106       651
# 3:        AN      99       667
# 4:        AO      30       167
# 5:        AP      46       348
# 6:        AQ      62       547

Usage Example

Even if you load the innteamUtils package into your R session, datasets are available but not loaded into your current enviornment. To load them you need to call them explicitly with the data() function. For example:

# Call the dataset: don't worry, it is a "promise" until you use it.
data("agenzie_provincia")

# Calculate the Mean 
agenzie_provincia[, lapply(.SD, mean), .SDcols = c('agenzie', 'subagenti')]
#     agenzie subagenti
# 1: 97.12727  937.7818