

hours(chron)                                 R Documentation

_R_e_t_u_r_n _H_o_u_r_s_, _M_i_n_u_t_e_s_, _o_r _S_e_c_o_n_d_s _f_r_o_m _a _T_i_m_e_s _O_b_j_e_c_t

_U_s_a_g_e_:

     hours(x)
     minutes(x)
     seconds(x)

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

       x: an object inheriting from class "times".

_V_a_l_u_e_:

     the corresponding time period as an ordered factor.

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

     `chron', `dates', `times'

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

     x <- chron(dates = c("02/27/92", "02/27/92", "01/14/92", "02/28/92"),
                times = c("23:03:20", "22:29:56", "01:03:30", "18:21:03"))
     h <- hours(x)
     y <- runif(4)
     boxplot(y ~ h)

