View source: R/Get_nteachers_prov.R
| Get_nteachers_prov | R Documentation |
This functions downloads the number of teachers by province from the open website of the Italian Ministry of Education, University and Research.
Get_nteachers_prov(
Year = 2023,
verbose = TRUE,
show_col_types = FALSE,
filename = c("DOCTIT", "DOCSUP"),
t_out = 3,
autoAbort = FALSE,
forceAbort = FALSE
)
Year |
Numeric or character value. Reference school year for the school registry data (last available is 2023).
Available in the formats: |
verbose |
Logical. If |
show_col_types |
Logical. If |
filename |
Character. Which data to retrieve among the province counts of teachers/school personnel.
By default it is
|
t_out |
Numeric. !! EXPERIMENTAL !! session timeout for scraping and download, in seconds. 3 seconds by default. |
autoAbort |
Logical. Whether to automatically abort the operation and return NULL in case of missing internet connection or server response errors. |
forceAbort |
Logic. Whether to force a limited number of attempts to scrape the provider webpage.
Not recommended to be switched to |
Please notice that by default, the function returns the count of the number of tenured and temporary teachers.
If either the count of non-teaching personnel or the count of a single category of teaching personnel is needed, please adapt
the filename argument accordingly.
An object of class tbl_df, tbl and data.frame.
<https://dati.istruzione.it/opendata/opendata/catalogo/elements1/?area=Personale+Scuola>
nteachers23 <- Get_nteachers_prov(Year=2023, filename="DOCTIT",
autoAbort=TRUE, forceAbort = TRUE)
nteachers23[, c(3,4,5)]
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.