library(LearnDC)
Welcome to LearnDC! This vignette walks you through some of the basic functions in the package.
To get data using LearnDC, first think about the level (single school? all of DC?) of the data you are looking for, then think about the kind (graduation? enrollment?) of information you want.
LearnDC returns data at four levels of depth:
Note that you don't specify a particular school, LEA, etc when making the call. If you're looking for individual school data, you call GetSchool
and then filter the response.
GetExhibits
shows the available data for each aggregation level.
If, for instance, you wanted to know what exhibits were valid for GetSchool
:
GetExhibits(level = 'school')
Let's say you were interested in getting enrollment data for all four aggregation levels. Here's what the calls would look like:
enr_sch <- GetSchool(exhibit = 'enrollment') head(enr_sch)
enr_lea <- GetLEA(exhibit = 'enrollment') head(enr_lea)
enr_sec <- GetSector(exhibit = 'enrollment') head(enr_sec)
enr_dc <- GetState(exhibit = 'enrollment') head(enr_dc)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.