Skip to contents

Status: Under Construction

This package provides total enrollment counts for 65 major Missouri districts (2018-2024) from real DESE public sources. However, demographic breakdowns (race/ethnicity), grade-level distributions, and special population counts (SPED, EL, FRL) in the bundled seed data are hardcoded constants and should not be used for analysis.

When real demographic and grade-level data becomes available from DESE (via MCDS portal authentication, report card scraping, or direct data request), this vignette will be rebuilt with verified data stories.

Basic Usage

enr_2024 <- fetch_enr(2024, use_cache = TRUE)
totals <- enr_2024 |>
  filter(is_district, subgroup == "total_enrollment", grade_level == "TOTAL") |>
  arrange(desc(n_students)) |>
  select(district_name, n_students) |>
  head(10)
stopifnot(nrow(totals) > 0)
totals
#> # A tibble: 10 × 2
#>    district_name        n_students
#>    <chr>                     <dbl>
#>  1 SPRINGFIELD R-XII         24267
#>  2 ROCKWOOD R-VI             21015
#>  3 COLUMBIA 93               19450
#>  4 NORTH KANSAS CITY 74      18700
#>  5 ST. LOUIS CITY            18200
#>  6 WENTZVILLE R-IV           17944
#>  7 LEE'S SUMMIT R-VII        17887
#>  8 HAZELWOOD                 17800
#>  9 FRANCIS HOWELL R-III      17100
#> 10 PARKWAY C-2               16924

Session Info

sessionInfo()
#> R version 4.5.2 (2025-10-31)
#> Platform: x86_64-pc-linux-gnu
#> Running under: Ubuntu 24.04.3 LTS
#> 
#> Matrix products: default
#> BLAS:   /usr/lib/x86_64-linux-gnu/openblas-pthread/libblas.so.3 
#> LAPACK: /usr/lib/x86_64-linux-gnu/openblas-pthread/libopenblasp-r0.3.26.so;  LAPACK version 3.12.0
#> 
#> locale:
#>  [1] LC_CTYPE=C.UTF-8       LC_NUMERIC=C           LC_TIME=C.UTF-8       
#>  [4] LC_COLLATE=C.UTF-8     LC_MONETARY=C.UTF-8    LC_MESSAGES=C.UTF-8   
#>  [7] LC_PAPER=C.UTF-8       LC_NAME=C              LC_ADDRESS=C          
#> [10] LC_TELEPHONE=C         LC_MEASUREMENT=C.UTF-8 LC_IDENTIFICATION=C   
#> 
#> time zone: UTC
#> tzcode source: system (glibc)
#> 
#> attached base packages:
#> [1] stats     graphics  grDevices utils     datasets  methods   base     
#> 
#> other attached packages:
#> [1] dplyr_1.2.0        moschooldata_0.1.0
#> 
#> loaded via a namespace (and not attached):
#>  [1] vctrs_0.7.1       httr_1.4.8        cli_3.6.5         knitr_1.51       
#>  [5] rlang_1.1.7       xfun_0.56         purrr_1.2.1       generics_0.1.4   
#>  [9] textshaping_1.0.4 jsonlite_2.0.0    glue_1.8.0        htmltools_0.5.9  
#> [13] ragg_1.5.0        sass_0.4.10       rappdirs_0.3.4    rmarkdown_2.30   
#> [17] tibble_3.3.1      evaluate_1.0.5    jquerylib_0.1.4   fastmap_1.2.0    
#> [21] yaml_2.3.12       lifecycle_1.0.5   compiler_4.5.2    codetools_0.2-20 
#> [25] fs_1.6.6          pkgconfig_2.0.3   systemfonts_1.3.1 digest_0.6.39    
#> [29] R6_2.6.1          utf8_1.2.6        tidyselect_1.2.1  curl_7.0.0       
#> [33] pillar_1.11.1     magrittr_2.0.4    bslib_0.10.0      withr_3.0.2      
#> [37] tools_4.5.2       pkgdown_2.2.0     cachem_1.1.0      desc_1.4.3