checkYearValidity: Check the validity of a year

Description Usage Arguments Value Examples

View source: R/checkYearValidity.R

Description

Helper method to check the validity of a year

Usage

1

Arguments

year

a four-digit number representing the desired year

Value

an ERROR if the year is not in the yrbss_data_binary dataset, the year itself if it is valid, and 2015 if it is NULL.

Examples

1

gsimchoni/yrbss documentation built on May 24, 2019, 4:05 a.m.