Downloads and processes school and district directory data from the Arkansas Department of Education (ADE) Data Center. Combines data from the District List, School List, Superintendent Contact List, and Principal Contact List.
Arguments
- end_year
School year end (e.g., 2025 for 2024-25). Valid: 2005-2026. If NULL (default), uses the most recent available year.
- tidy
If TRUE (default), returns data in a standardized format with consistent column names. If FALSE, returns the raw combined data.
- use_cache
If TRUE (default), uses locally cached data when available. Set to FALSE to force re-download from ADE.
Value
A tibble with school directory data. Tidy columns include:
end_year: School year endstate_district_id: 7-digit district LEA codestate_school_id: 7-digit school LEA code (NA for district rows)district_name: District nameschool_name: School name (NA for district rows)entity_type: "district" or "school"address: Street addresscity: Citystate: State (always "AR")zip: ZIP codephone: Phone numbersuperintendent_name: Superintendent name (district rows)superintendent_email: Superintendent email (district rows)principal_name: Principal name (school rows)principal_email: Principal email (school rows)
Examples
if (FALSE) { # \dontrun{
# Get latest directory data
dir_data <- fetch_directory()
# Get specific year
dir_2024 <- fetch_directory(2024)
# Get raw format
dir_raw <- fetch_directory(tidy = FALSE)
# Force fresh download
dir_fresh <- fetch_directory(use_cache = FALSE)
# Filter to specific district
library(dplyr)
bentonville <- dir_data |>
filter(grepl("BENTONVILLE", district_name))
} # }