Learn R Programming

SchoolDataIT (version 0.2.7)

Util_BroadBand2mun: Map schools included in the ultra-broadband plan to their LAU codes.

Description

Helper function to provide the ultra-broadband dataset obtained with Get_BroadBand with the statistical codes of the relevant municipalities, obtained with Get_School2mun, in case the ultra-broadband dataset has been downloaded with argument include_municipality_code = FALSE.

Usage

Util_BroadBand2mun(
  data,
  input_School2mun = NULL,
  input_Registry = NULL,
  input_AdmUnNames = NULL,
  verbose = FALSE,
  autoAbort = FALSE
)

Value

An object of class tbl_df, tbl and data.frame, identical to the output of Get_BroadBand with an additional column for LAU codes

Arguments

data

Object of class tbl_df, tbl and data.frame obtained with the function Get_BroadBand

input_School2mun

Object of class list obtained with Get_School2mun, including the mapping from school codes to municipality (and province) codes. If NULL, it will be downloaded automatically, but not saved in the global environment. NULL by default.

input_Registry

If input_School2mun is required, an object of class tbl_df, tbl and data.frame corresponding to the national school registry (preferably of the last year, i.e. 2024/2025) obtained with Get_Registry. NULL by default.

input_AdmUnNames

If input_School2mun is required, an object of class tbl_df, tbl and data.frame corresponding to the statistical codes of administrative units (preferably referring to the period corresponding to school year 2024/2025) obtained with Get_AdmUnNames. NULL by default.

verbose

Logical. If TRUE, the user keeps track of the main underlying operations. TRUE by default.

autoAbort

Logical. Whether to automatically abort the operation and return NULL in case of missing internet connection or server response errors. FALSE by default.

Details

see Get_BroadBand