Fetch graduation rate data for multiple years
Source:R/fetch_graduation.R
fetch_graduation_multi.RdDownloads and combines graduation rate data for multiple school years.
Examples
if (FALSE) { # \dontrun{
# Get 5 years of data
grad_multi <- fetch_graduation_multi(2020:2024)
# Track graduation rate trends
grad_multi |>
dplyr::filter(is_state, subgroup == "all", cohort_type == "4-year") |>
dplyr::select(end_year, grad_rate, cohort_count)
# Compare Boston and Springfield over time
grad_multi |>
dplyr::filter(district_id %in% c("0035", "0281"),
subgroup == "all",
cohort_type == "4-year") |>
dplyr::select(end_year, district_name, grad_rate)
} # }