Downloads and processes school directory data from the Connecticut Open Data Portal (data.ct.gov). This includes all public educational organizations in Connecticut with address and contact information.
Value
A tibble with school directory data. Columns include:
state_school_id: State organization code (7 characters)state_district_id: District code derived from organization codeschool_name: Organization/school namedistrict_name: District nameschool_type: Type of organization (e.g., "Elementary School")grades_served: Comma-separated list of grades offeredaddress: Street addresscity: Town/city namestate: State (always "CT")zip: ZIP codephone: Phone numberlatitude: Geographic latitudelongitude: Geographic longitudeinterdistrict_magnet: Whether this is an interdistrict magnetstudent_open_date: Date the organization opened
Details
The directory data is downloaded via the Socrata API from the CT Open Data Portal. This data represents the official listing of all public educational organizations in Connecticut as maintained by CSDE.
Note: This data source does not include principal/superintendent names or email addresses. For contact information, visit EdSight Find Contacts at https://public-edsight.ct.gov/overview/find-contacts
Examples
if (FALSE) { # \dontrun{
# Get school directory data
dir_data <- fetch_directory()
# Get raw format (original API column names)
dir_raw <- fetch_directory(tidy = FALSE)
# Force fresh download (ignore cache)
dir_fresh <- fetch_directory(use_cache = FALSE)
# Filter to elementary schools only
library(dplyr)
elementary <- dir_data |>
filter(grepl("Elementary", school_type))
# Find all schools in Hartford
hartford_schools <- dir_data |>
filter(grepl("Hartford", district_name))
} # }