Skip to contents

Imports a manually downloaded cost-per-pupil or state-summary file. Use this to refresh bundled data with a fresh export from the NH DOE financial-reports page.

Usage

import_local_finance(file_path)

Arguments

file_path

Path to a downloaded .csv or .csv.gz file.

Value

Data frame of raw finance data (all character columns, no header).

Examples

if (FALSE) { # \dontrun{
# Download cost-per-pupil-fyYYYY.csv manually from NH DOE, then:
raw <- import_local_finance("~/Downloads/cost-per-pupil-fy2025.csv")
processed <- process_cost_per_pupil(raw, 2025)

# Or a state-summary file
raw_sum <- import_local_finance("~/Downloads/summaryrevexp-2019-2020web.csv")

# Inspect the raw rows to confirm the layout
utils::head(raw, 25)
} # }