View source: R/Util_Check_nstud_availability.R
Util_Check_nstud_availability | R Documentation |
This function checks for which schools listed in the two registries (the buildings registry and the properly said schools registry)
the count of students is available. The first registry is referred to as as Registry_from_buildings
and the second one as Registry_from_registry
.
Util_Check_nstud_availability(
data,
Year,
cutout = c("IC", "IS", "NR"),
verbose = TRUE,
ggplot = TRUE,
toplot_registry = "Any",
InnerAreas = TRUE,
ord_InnerAreas = FALSE,
input_Registry = NULL,
input_InnerAreas = NULL,
input_Prov_shp = NULL,
input_AdmUnNames = NULL,
input_School2mun = NULL,
autoAbort = FALSE
)
data |
Object of class |
Year |
Numeric or character value. Reference school year.
Available in the formats: |
cutout |
Character. The types of schools not to be taken into account (because not relevant or because they are out of scope in the students number section). By default |
verbose |
Logical. If |
ggplot |
Logical. If |
toplot_registry |
Character. If the |
InnerAreas |
Logical. Whether it must be checked if municipalities belong to inner areas or not. |
ord_InnerAreas |
Logical. Whether the inner areas classification should be treated as an ordinal variable rather than as a categorical one (see |
input_Registry |
Object of class |
input_InnerAreas |
Object of class |
input_Prov_shp |
Object of class |
input_AdmUnNames |
Object of class |
input_School2mun |
Object of class |
autoAbort |
Logical. In case any data must be retrieved, whether to automatically abort the operation and return NULL in case of missing internet connection or server response errors. |
An object of class list
including two elements:
$Municipality_data
$Province_data
Both the elements are objects of class list
including four elements:
$Registry_from_buildings
: object of class of class tbl_df
, tbl
and data.frame
: the availability of the number of students in the schools listed in the buildings section.
$Registry_from_registry
: object of class of class tbl_df
, tbl
and data.frame
: the availability of the number of students in the schools listed in the registry section.
$Any
: object of class of class tbl_df
, tbl
and data.frame
: the availability of the number of students in the schools listed anywhere.
$Both
: object of class of class tbl_df
, tbl
and data.frame
: the availability of the number of students in the schools listed in both sections.
Buildings Registry; Schools Registry
nstud23 <- Util_nstud_wide(example_input_nstud23, verbose = FALSE)
Util_Check_nstud_availability(nstud23, Year = 2023,
input_Registry = example_input_Registry23, InnerAreas = FALSE,
input_School2mun = example_School2mun23, input_Prov_shp = example_Prov22_shp)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.