validate_year: Check that the year is in the correct format e.g. '2001-2002'...

Description Usage Arguments

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

1
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 documentation built on May 2, 2019, 5:08 a.m.