origin | R Documentation |
Get and set chron origin.
origin(x)
origin(x) <- value
x |
a chron object |
value |
month, day, year vector |
origin
extracts the origin of its argument. origin<-
sets the
origin of its argument.
The origin
function returns a month, day, year vector.
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.
chron
ch <- as.chron(Sys.Date())
origin(ch)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.