Skip to contents

Downloads and processes graduation rate data from the Pennsylvania Department of Education cohort graduation rate files.

Usage

fetch_graduation(end_year, tidy = TRUE, use_cache = TRUE)

Arguments

end_year

A school year. Year is the end of the academic year - eg 2023-24 school year is year '2024'. Valid values are 2011-2024.

tidy

If TRUE (default), returns data in long (tidy) format with subgroup column. If FALSE, returns wide format with one row per school/district.

use_cache

If TRUE (default), uses locally cached data when available. Set to FALSE to force re-download from PDE.

Value

Data frame with graduation rate data

Examples

if (FALSE) { # \dontrun{
# Get 2024 graduation rates (2023-24 school year)
grad_2024 <- fetch_graduation(2024)

# Get wide format
grad_wide <- fetch_graduation(2024, tidy = FALSE)

# Force fresh download (ignore cache)
grad_fresh <- fetch_graduation(2024, use_cache = FALSE)
} # }