Skip to contents

Test to check that the year vector is in the correct format

Usage

check_year_format(year, format = "fyyear")

Arguments

year

the year to check

format

the format that year should be using. Default is "fyyear" for example 1718, the other format available is "alternate" e.g. 2017

Value

The year if the check passes, it will be converted to a character if not already.

See also