ciHS_demographics: Determine the demographic breakout of CiHs by High School

Description Usage Arguments Value Examples

View source: R/ciHS_demographics.R

Description

Determine the demographic breakout of CiHs by High School

Usage

1
ciHS_demographics(data, high_school_name = "")

Arguments

data

The DW STUDENT table saved as an R object.

high_school_name

Provide the entire or partial High School name.

Value

A tibble with number of students per high school broken out by race/ethnicity.

Examples

 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")

Edgar-Zamora/bbccIR documentation built on Feb. 3, 2022, 11:06 a.m.