get_prev_gen: Get the previous generation

Description Usage Arguments Value Examples

View source: R/getters.R

Description

Given a generation's name, find what the previous or next generation is.

Usage

1
2
3

Arguments

gen

a string, exactly matching a generation's name

Value

a string. If the generation is out of range (such as the generation after Gen Z, it returns NA.)

Examples

1
2
3
4
get_prev_gen("Millennial")
get_prev_gen("Aurthurian")
get_next_gen("Silent")
get_next_gen("Gen Z")

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