Turn zodiac character into an ordered factor

zodiac_factor_order(x, factor_order = "roman")

Arguments

x

a vector of data, usually taking a small number of distinct values.

factor_order

A character. Sort the factor levels by the following:

  • roman: roman calender; Aries first (Default)

  • modern: modern calender; Capricorn first

  • none: return the data as a character

Value

A character with the requests levels.

Examples

zodiac_factor_order("Libra")
#> [1] Libra #> 12 Levels: Aries Taurus Gemini Cancer Leo Virgo Libra Scorpio ... Pisces