sr_identify_school_grades: Identify if school contains a grade

View source: R/utils-educationdata-district.R

sr_identify_school_gradesR Documentation

Identify if school contains a grade

Description

NCES data reports grades for schools, but reports it as the lowest and highest grades. This function takes a vector of grades as input and then returns a boolean of whether the school contains any of the grades based on the lowest and highest grades.

Usage

sr_identify_school_grades(.data, vector_of_grades)

Arguments

.data

Dataset of CCD data, created with sr_ccd_directory().

vector_of_grades

Vector of integers representing the grades of which we want to see if the school has any of the grades in the vector.


shanejorr/schoolreportr documentation built on Aug. 7, 2023, 12:25 p.m.