ncschooldata: Fetch and Process North Carolina School Data
Source:R/ncschooldata-package.R
ncschooldata-package.RdDownloads and processes school data from the North Carolina Department of Public Instruction (NC DPI). Provides functions for fetching enrollment data from the Statistical Profile system and transforming it into tidy format for analysis.
Main functions
fetch_enrFetch enrollment data for a school year
fetch_enr_multiFetch enrollment data for multiple years
get_available_yearsList available school years
tidy_enrTransform wide data to tidy (long) format
id_enr_aggsAdd aggregation level flags
enr_grade_aggsCreate grade-level aggregations
Cache functions
cache_statusView cached data files
clear_cacheRemove cached data files
ID System
North Carolina uses a hierarchical ID system:
LEA (District) codes: 3 digits (e.g., 920 = Wake County Schools)
School codes: 6 digits (LEA code + 3-digit school number)
Data Sources
Data is sourced from:
NC DPI Statistical Profile: http://apps.schools.nc.gov/ords/f?p=145:1
Format Eras
- Era 1 (2006-2010)
Asian and Pacific Islander combined in one category
- Era 2 (2011-present)
Seven separate race/ethnicity categories per federal standards
Known Limitations
Pre-2011 data combines Asian and Pacific Islander into one category
Some small cell sizes may be suppressed for privacy
Charter school data availability varies by year
Author
Maintainer: Al Martin almartin@example.com