Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

origin

Chron Origin


Description

Get and set chron origin.

Usage

origin(x)
origin(x) <- value

Arguments

x

a chron object

value

month, day, year vector

Details

origin extracts the origin of its argument. origin<- sets the origin of its argument.

Value

The origin function returns a month, day, year vector.

Note

The default origin for chron objects is January 1, 1970 and it is recommended that that origin be used. Some chron functions may not perform properly with a non-default origin.

See Also

Examples

ch <- as.chron(Sys.Date())
origin(ch)

chron

Chronological Objects which can Handle Dates and Times

v2.3-56
GPL-2
Authors
David James [aut] (S original), Kurt Hornik [aut, trl, cre] (<https://orcid.org/0000-0003-4198-9911>), Gabor Grothendieck [ctb], R Core Team [ctb]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.