prepDF | R Documentation |
Prepare nested dataset
prepDF(df, unitID, subunitID)
df |
dataframe |
unitID |
character; unit column name in original dataset |
subunitID |
character; sub-unit column name in original dataset |
processed dataframe
################################################################################ ############## Prepare dataframe [sitepickR Package] ########################### ######### Robert Olsen, Elizabeth A. Stuart & Elena Badillo-Goicoechea (2022) ## # Basic usage of prepDF() rawCCD <- sitepickR::rawCCD uSampVarsCCD <- c("w.pct.frlunch", "w.pct.black", "w.pct.hisp", "w.pct.female") suSampVarsCCD <- c("sch.pct.frlunch", "sch.pct.black", "sch.pct.hisp", "sch.pct.female") dfCCD <- prepDF(rawCCD, unitID="LEAID", subunitID="NCESSCH")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.