Get a generation's start or end year

get_start(generation)

get_end(generation)

Arguments

generation

a string, exactly matching a generation's name

Examples

get_start("Millennial")
#> [1] 1984
get_start(c("Millennial", "Lost"))
#> [1] 1984 1886
get_end("Millennial")
#> [1] 2007
get_end(c("Millennial", "Lost"))
#> [1] 2007 1907