Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

validate_year

Check that the year is in the correct format e.g. '2001-2002' is correct and returns TRUE, '2001' is not correct and returns FALSE


Description

Check that the year is in the correct format e.g. '2001-2002' is correct and returns TRUE, '2001' is not correct and returns FALSE

Usage

validate_year(year, throw_error = TRUE)

Arguments

year

the year or years to validate

throw_error

whether to throw an error if the year is invalid


RNHANES

Facilitates Analysis of CDC NHANES Data

v1.1.0
Apache License 2.0 | file LICENSE
Authors
Herb Susmann [cre, aut], Silent Spring Institute [cph]
Initial release
2016-11-28

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.