Skip to contents

Imports assessment data from a manually downloaded CSV or Excel file. Use this to refresh bundled data with a fresh export from the NH DOE assessment data page. The file must follow one of the four NH DOE schema eras handled by process_assessment().

Usage

import_local_assessment(file_path, end_year)

Arguments

file_path

Path to a downloaded .csv, .csv.gz, .xlsx, or .xls file.

end_year

School year end (e.g., 2024 = 2023-24 school year).

Value

Data frame of raw assessment data (all character columns).

Examples

if (FALSE) { # \dontrun{
# Download a disaggregated assessment file manually from NH DOE, then:
raw <- import_local_assessment("~/Downloads/assessment-2024.csv", 2024)
processed <- process_assessment(raw, 2024)

# Or import an Excel export
raw_xl <- import_local_assessment("~/Downloads/assessment-2023.xlsx", 2023)

# Inspect the raw columns to confirm which schema era it matches
names(raw)
} # }