isWeekday             package:fCalendar             R Documentation

_W_e_e_k_d_a_y_s _a_n_d _W_e_e_k_e_n_d_s

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

     Tests if a date is a weekday or not.

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

     isWeekday(x)
     isWeekend(x)

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

       x: an object of class 'timeDate'. 

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

     the functions return logical vectors indicating if a date is a 
     weekday, or a weekend day.

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

       
     ## Dates in April, currentYear: 
        tS = timeSequence(
           from = paste(currentYear, "-03-01", sep = ""),
           to = paste(currentYear, "-04-30", sep = ""))
        tS
         
     ## Subset of Weekends:
        isWeekend(tS)
        tS[isWeekend(tS)]

