Skip to contents

Convenience function to fetch assessment data for a single district.

Usage

fetch_district_assessment(
  end_year,
  district_id,
  subject = "all",
  tidy = TRUE,
  use_cache = TRUE
)

Arguments

end_year

School year end

district_id

4-digit district code (e.g., "0880" for Denver Public Schools)

subject

Subject to fetch: "all" (default), "ela", "math", "science", or "csla"

tidy

If TRUE (default), returns tidy format

use_cache

If TRUE (default), uses cached data

Value

Data frame filtered to specified district

Examples

if (FALSE) { # \dontrun{
# Get Denver Public Schools (0880) assessment data
denver_assess <- fetch_district_assessment(2024, "0880")

# Get Jefferson County (0870) Math data
jeffco_math <- fetch_district_assessment(2024, "0870", subject = "math")
} # }