Get and set chron origin.
origin(x) origin(x) <- value
a chron object
month, day, year vector
The origin function returns a month, day, year vector.
origin
origin extracts the origin of its argument. origin<- sets the origin of its argument.
origin<-
chron
# NOT RUN { ch <- as.chron(Sys.Date()) origin(ch) # }
Run the code above in your browser using DataCamp Workspace