add_years: Add years to generation name

Description Usage Arguments Examples

View source: R/generations.R

Description

Takes a vector of generation names (short or long) and two integers. Adds (x–y) to the end of the names. The space and en-dash can be modified with the two arguments.

Usage

1
add_years(gens, years_sep, years_range_sep)

Arguments

gens

a vector

years_sep

a string

years_range_sep

a string

Examples

1
add_years(c("Millennial", "Gen X"))

JoeyStanley/generations documentation built on Dec. 31, 2020, 2:03 p.m.