Learn R Programming

chron (version 2.3-61)

origin: Chron Origin

Description

Get and set chron origin.

Usage

origin(x)
origin(x) <- value

Value

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

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.

See Also

chron

Examples

Run this code
ch <- as.chron(Sys.Date())
origin(ch)

Run the code above in your browser using DataLab