timeSequence            package:fCalendar            R Documentation

_R_e_g_u_l_a_r_l_y _s_p_a_c_e_d '_t_i_m_e_D_a_t_e' _o_b_j_e_c_t_s

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

     Create a regularly spaced object of class 'timeDate'.

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

     timeSequence(from, to = format(Sys.time(), "%Y-%m-%d"),
         by = c("day", "year", "quarter", "month", "week", "hour", "min", "sec"),
         length.out = NULL, format = NULL,
         zone = myFinCenter, FinCenter = myFinCenter)

     ## S3 method for class 'timeDate':
     seq(from, to, by = c("day", "year", "quarter", "month",
         "week", "hour", "min", "sec"), length.out = NULL, ...)

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

from, to: [timeSequence] - 
           starting date, required, and end date, optional. If supplied
          'to' must be after 'from', 
           [seq] - cr in this case the 'from' and 'to' dates must be
          objects of class 'timeDate'. 

      by: a character string, containing one of "sec", "min", "hour",
          "day", "week", "month" or "year". This can optionally be
          preceded by an integer and a space, or followed by "s". 

length.out: length.out integer, optional. Desired length of the
          sequence, if specified "to" will be ignored. 

  format: the format specification of the input character vector. 

    zone: the time zone or financial center where the data were
          recorded. 

FinCenter: a character with the the location of the financial center
          named as "continent/city". 

     ...: arguments passed to other methods. 

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

     returns a S4 object of 'class' '"timeDate"'.

_N_o_t_e:

     'seq' is a synonyme generic function for 'timeSequence'.

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

     ## timeSequence -
        
        timeSequence(from = "2004-03-12", to = "2004-04-11",
             format = "%Y-%m-%d", FinCenter = "GMT")
             
        timeSequence(from = "2004-03-12", to = "2004-04-11",
             format = "%Y-%m-%d", FinCenter = "Europe/Zurich")

