Skip to contents

Transforms tidy enrollment data from ilschooldata into the long format expected by enrollforecast's enr_process_enrollment().

Usage

il_to_enrollforecast(df, district_rcdts, include_pk = FALSE)

Arguments

df

A data frame from ilschooldata (output of fetch_enr with tidy=TRUE)

district_rcdts

RCDTS code for the district to extract

include_pk

Include Pre-K enrollment (default FALSE)

Value

A data frame with columns: year, grade, enrollment

Examples

if (FALSE) { # \dontrun{
il_data <- fetch_enr(2024, tidy = TRUE)
chicago <- il_to_enrollforecast(il_data, "15016299025")
} # }