Fetch graduation rate data for multiple class years
Source:R/fetch_graduation.R
fetch_grad_multi.RdDownloads and combines graduation rate data for multiple class years.
Examples
if (FALSE) { # \dontrun{
# Get graduation rates for Class of 2018-2024
grad_multi <- fetch_grad_multi(2018:2024)
# Track state trends
grad_multi |>
dplyr::filter(type == "State", subgroup == "all_students") |>
dplyr::select(class_year, grad_rate)
# Compare districts over time
grad_multi |>
dplyr::filter(district_id %in% c("101912", "015902")) |>
dplyr::group_by(district_name, class_year) |>
dplyr::summarize(
rate = mean(grad_rate, na.rm = TRUE),
.groups = "drop"
)
} # }