Downloads and combines assessment data for multiple school years.
Usage
fetch_assessment_multi(
years,
data_type = c("participation", "proficiency"),
use_cache = TRUE
)Details
Combines assessment data from multiple years into a single data frame.
Each row includes the end_year column for filtering and analysis.
This is useful for:
Trend analysis across years
Post-COVID recovery tracking
Year-over-year comparisons
See also
fetch_assessment for single year data
Examples
if (FALSE) { # \dontrun{
# Get MCAP data for all available years
assess_all <- fetch_assessment_multi(2022:2024)
# Calculate participation trends by district
library(dplyr)
assess_all |>
filter(is_district, student_group == "All Students", subject == "English/Language Arts") |>
select(end_year, district_name, participation_pct) |>
pivot_wider(names_from = end_year, values_from = participation_pct)
} # }