get_data_region_OC {PublicWorksFinanceIT}R Documentation

Retrieve data from the OpenCoesione data base per region.

Description

The get_data_region_OC function retrieves data from one or more Italian regions using associated region codes. It offers filtering options based on project start/end dates, province, and municipality codes. Additionally, it provides geospatial references.

Usage

get_data_region_OC(
  cod_reg,
  cod_prov = NULL,
  cod_mun = NULL,
  start = NULL,
  end = NULL,
  geo_ref = NULL,
  soil_defense = FALSE,
  verbose = TRUE
)

Arguments

cod_reg

character. Vector specifying one or more region of interest. To get information about the codes associated to each region use the function get_info_OC

cod_prov

character. The ISTAT province code is used to filter data based on one or more specific provinces of interest.(See get_codes function)

cod_mun

character. The ISTAT municipality code is used to filter data based on one or more specific provinces of interest.(See get_codes function)

start

(format YYYY-mm-dd). Effective starting date of the project. This date can be of interest for filtering and analyzing relevant data.

end

(format YYYY-mm-dd). Effective ending date of the project. This date can be of interest for filtering and analyzing relevant data.

geo_ref

character, The georeference data can be specified using the geo_ref argument. If set to A, the function returns shape polygons of each municipality. If set to C, it retrieves the coordinates of the centroids of each municipality.

soil_defense

Logical. By default set to FALSE. If only soil defense data are of interest set the argument to TRUE.

verbose

Logic value (TRUE or FALSE). Toggle warnings and messages. If 'verbose = TRUE' (default) the function prints on the screen some messages describing the progress of the tasks. If 'verbose = FALSE' any message about the progression is suppressed.

Value

Object of classe data.frame showing 42 variables: Descriptive Variables:

Financial Variables:

Geographical References:

Legislative process main steps:

Author(s)

Lorena Ricciotti

References

Open Coesione

Examples

 dati_VDA <- get_data_region_OC("VDA", cod_mun = "007002")
 # #Retrieving data for the municipality with code 007002 in the Valle d'Aosta region.

[Package PublicWorksFinanceIT version 0.2.0 Index]