short_generation_names: Get shortened generation names

Description Usage Arguments Details Value Examples

View source: R/generations.R

Description

Takes a vector of generation names and gets the shortened versions of them. Specifically, it shortens "Generation X/Y/Z" to just "Gen X/Y/Z" and in all other cases it just removes the word "Generation" entirely.

Usage

1

Arguments

gens

a vector

Details

For internal use only. Mostly used within add_years() so that generations() words properly when full_names and years are both specified.

Value

a vector

Examples

1
short_generation_names(c("Millennial Generation", "Generation X"))

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