Skip to contents

Imports enrollment data from a locally saved file. Use this function when automatic downloads from Montana OPI are not available. Download data manually from the GEMS portal (https://gems.opi.mt.gov/) and save locally.

Usage

import_local_enrollment(file_path, end_year, level = "both")

Arguments

file_path

Path to the local enrollment data file (CSV, XLSX, or XLS)

end_year

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

level

Data level: "school", "district", or "both"

Value

List with school and/or district data frames

Examples

if (FALSE) { # \dontrun{
# After downloading enrollment data from GEMS:
data <- import_local_enrollment(
  "~/Downloads/MT_Enrollment_2024.xlsx",
  end_year = 2024
)
} # }