itsAccessor               package:its               R Documentation

_A_c_c_e_s_s_o_r, _A_s_s_i_g_n_m_e_n_t _F_u_n_c_t_i_o_n_s _f_o_r _I_r_r_e_g_u_l_a_r _T_i_m_e-_S_e_r_i_e_s _O_b_j_e_c_t_s

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

     Accessor & assignment functions for objects of class '"its"'.

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

     dates(x)
     names(x)
     core(x)
     dates(x) <- 
     names(x) <-
     core(x) <- 

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

       x: an object of class '"its"'

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

     'dates' an accessor function, to access the time-stamps of the
     object.

     'names' an accessor function, to access the (column) names of the
     object.

     'core' an accessor function, to access the numeric data of the
     object.

     'dates' an assignment function to assign the time-stamps of the
     object.

     'names' an assignment function to assign the (column) names of the
     object.

     'core' an assignment function to assign the numeric data of the
     object.

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

     For 'dates'  a vector of class '"POSIXct"'. For 'names'  a vector
     of mode '"character"'. For 'core'  a matrix of mode'"numeric"'.
     For 'dates<-, names<-, and core<-' an object of class '"its"'.

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

     Giles Heywood

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

     'ts', 'POSIXct', 'itsFile', 'itsLags', 'itsJoin', 'itsTimes',
     'itsSubset', 'itsFin', 'itsDisp', 'itsInfo', 'itsCumdif',
     'itsArith'

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

     x <- newIts(1:10)
     dates(x)
     names(x)
     core(x)
     dates(x) <- seq.POSIXt(from=Sys.time()+11*24*60*60,
                 to=Sys.time()+20*24*60*60,
                 by="DSTday")
     names(x) <- "B"
     core(x) <- as.matrix(11:20)

