sr_check_level: Check 'level' parameter in functions

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

sr_check_levelR Documentation

Check 'level' parameter in functions

Description

For the educationdata API, the level must be either 'schools' or 'school-districts' for many calls. This function checks to ensure that the level parameter is one of these two values and throws an error if not.

Usage

sr_check_level(level)

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