minutes               package:quantmod               R Documentation

_E_x_t_r_a_c_t _M_i_n_u_t_e_s, _H_o_u_r_s, _o_r _D_a_y_s _o_f _a _H_i_g_h _F_r_e_q_u_e_n_c_y _T_i_m_e _S_e_r_i_e_s _O_b_j_e_c_t

_D_e_s_c_r_i_p_t_i_o_n:

     Extract the minutes or hours of a day, or days since the beginning
     of the year  This function is a generic, with currently a single
     method implemented for objects of class 'zoo'.

_U_s_a_g_e:

     ## 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,...)

_A_r_g_u_m_e_n_t_s:

       x: zoo object with index of class Date 

       k: used to identify which bar obs. belongs to 

     ...: additional unused arguments 

_D_e_t_a_i_l_s:

     Behaves exactly as weekdays, months and quarters from 'base' with
     the obvious difference in that the method extracts the minutes or
     hours of a day, and day of the year for a given object.

     'minutes3', 'minutes5', 'minutes10', 'minutes15', 'minutes30' are
     wrappers to the appropriate minutes time scale.

_V_a_l_u_e:

     '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]

_N_o_t_e:

     The zoo object's index must be of class POSIXct or POSIXlt, or
     coercible to such, and have sufficient time detail.

_A_u_t_h_o_r(_s):

     Jeffrey A. Ryan

_S_e_e _A_l_s_o:

     'weekdays', 'Date', 'POSIXlt',

_E_x_a_m_p_l_e_s:

     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)

