DescTools (version 0.99.14)

Zodiac: Calculate the Zodiac of a Date

Description

Calculate the sign of zodiac of a date.

Usage

Zodiac(x, lang = c("engl", "deu"), stringsAsFactors = TRUE)

Arguments

x
the date to be transformed.
lang
the language of the zodiac names, can be english (default) or german ("deu").
stringsAsFactors
logical. If set to TRUE (default) the result will consist of a factor with zodiac signs as levels.

Value

  • character vector or factor with the zodiac.

Details

The really relevant things can sometimes hardly be found. You just discovered such a function... ;-)

See Also

Year and other date functions

Examples

Run this code
Zodiac(c(Date(1937,7,28), Date(1936,6,1), Date(1966,2,25),
         Date(1964,11,17), Date(1972,4,25)), lang="deu")

d <- sample(seq(as.Date("2015-01-01"), as.Date("2015-12-31"), 1), 120)
z <- Zodiac(d)
Desc(z)

Run the code above in your browser using DataCamp Workspace