Skip to content

Commit

Permalink
Add SY2324 attendance zone data
Browse files Browse the repository at this point in the history
  • Loading branch information
elipousson committed Jan 30, 2024
1 parent b22b089 commit b068469
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions data-raw/bcpss_spatial_data.R
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,29 @@ library(dplyr)

selected_crs <- 2804

bcps_es_zones_SY2324_path <- "https://services3.arcgis.com/mbYrzb5fKcXcAMNi/arcgis/rest/services/School_Profiles_WFL1/FeatureServer/14"

bcps_es_zones_SY2324 <- esri2sf::esri2sf(bcps_es_zones_SY2324_path, crs = selected_crs) |>
janitor::clean_names("snake") |>
select(
zone_number = zone_no,
zone_name,
program_number = lower_grades,
program_name = prog_name,
lower_grades,
upper_grades,
geometry = geoms
) |>
dplyr::mutate(
zone_number = as.integer(zone_number),
program_number = as.integer(program_number),
program_name_short = stringr::str_remove(zone_name, " zone$"),
upper_grades = as.character(upper_grades)
) |>
dplyr::arrange(zone_number)

usethis::use_data(bcps_es_zones_SY2324, overwrite = TRUE)

bcps_es_zones_SY2223_path <- "https://services3.arcgis.com/mbYrzb5fKcXcAMNi/ArcGIS/rest/services/SY2223_Elementary_Zones/FeatureServer/21"

bcps_es_zones_SY2223 <- esri2sf::esri2sf(bcps_es_zones_SY2223_path) |>
Expand Down
Binary file added data/bcps_es_zones_SY2324.rda
Binary file not shown.

0 comments on commit b068469

Please sign in to comment.