sr_add_leading_zeroes: Helper function to add leading zeroes to school and district...

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

sr_add_leading_zeroesR Documentation

Helper function to add leading zeroes to school and district numbers

Description

School and district numbers started receiveing an additional leading zero in 2020. This function places all numbers in the same format by ensuring all numbers are of the same length. Leading zeroes are added when numbers are not of the proper length

Usage

sr_add_leading_zeroes(.data)

Arguments

.data

Data frame containing columns titled ncessch and leaid that we want to convert to character


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