Convert a year into the number of years after 2009

gonovax_year(year)

Arguments

year

an integer year

Value

An integer, being the number of years after 2009

Examples

gonovax_year(2019)
#> [1] 10
gonovax_year(c(2018, 2019))
#> [1] 9 10