Description Usage Arguments Value Examples
View source: R/ciHS_demographics.R
Determine the demographic breakout of CiHs by High School
1 | ciHS_demographics(data, high_school_name = "")
|
data |
The DW STUDENT table saved as an R object. |
high_school_name |
Provide the entire or partial High School name. |
A tibble with number of students per high school broken out by race/ethnicity.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | library(tibble)
library(magrittr)
# The data will look something like this.
df <- tibble(
sid = c("1" , "2"),
year = c("B90", "B90"),
hi_schl = c("178", "179"),
race_ethnic_code = c("1", "6"),
dual_enroll = c("2", "1")
)
df
# Providing no high school will return all the values
df %>%
ciHS_demographics()
# Using either the full name or paritial name will suffice if spelled correctly.
df %>%
ciHS_demographics(high_school_name = "Moses Lake")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.