
Last chance! 50% off unlimited learning
Sale ends in
zoo
.## S3 method for class 'zoo':
seconds(x,k=1,...)seconds(x,k=1,...)
## S3 method for class 'zoo':
minutes(x,k=1,...)
minutes(x,k=1,...)
minutes3(x,...)
minutes5(x,...)
minutes10(x,...)
minutes15(x,...)
minutes30(x,...)
## S3 method for class 'zoo':
hours(x,...)
## S3 method for class 'zoo':
days(x,...)
minutes
returns the minute of the day as a character [0-59]hours
returns the hour of the day as a character [0-23]
days
returns the day of the year as a character [001-366]
minutes3
,
minutes5
,
minutes10
,
minutes15
,
minutes30
are wrappers to the appropriate minutes
time scale.
weekdays
, Date
, POSIXlt
,start.time <- as.POSIXlt("2004-12-31 00:08:30")
minute.data <- zoo(rnorm(251),seq(start.time,start.time+15000,by=60))
minutes(minute.data)
minutes5(minute.data)
hours(minute.data)
days(minute.data)
Run the code above in your browser using DataLab