Skip to contents

Handles both NH schema eras by selecting columns from the header by KEYWORD (not fixed position): "Elementary", "Middle", "High", "(Pre School-12)", and "School District"/"DIST". FY2008 and FY2015 are name-only (no DIST id column); all other years carry a DIST district number.

Usage

process_cost_per_pupil(raw, end_year)

Arguments

raw

Raw cost-per-pupil frame from get_raw_finance()$cpp.

end_year

School year end.

Value

Long data frame, or NULL if raw is NULL.

Details

Emits one row per district (and one State Average row) per metric: per_pupil_total, per_pupil_elementary, per_pupil_middle, per_pupil_high (all is_per_pupil = TRUE). Rows whose value is a dash / blank / suppressed are dropped (absent, never zero-filled).