sr_convert_to_sy: Convert year as a single number to a school year

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

sr_convert_to_syR Documentation

Convert year as a single number to a school year

Description

For example, convert 2014 to 2014-2015. For all education data API years, the year listed is the fall semester. Function also orders the school year column by the year column, so plots with the school year column on the x axis are in the proper order

Usage

sr_convert_to_sy(years_col)

Arguments

years_col

Vector containing years. This will typically be the column in the data set containing years.

Value

A vector of school years, as a factor.


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