Skip to contents

Transforms wide enrollment data to long format with subgroup column. When upstream sources omit special-population subgroup cuts, tidy output includes explicit TOTAL rows with NA counts/pct (missing data, not zero).

Usage

tidy_enr(df)

Arguments

df

A wide data.frame of processed enrollment data

Value

A long data.frame of tidied enrollment data

Examples

if (FALSE) { # \dontrun{
wide_data <- fetch_enr(2024, tidy = FALSE)
tidy_data <- tidy_enr(wide_data)
} # }