frequency<-               package:zoo               R Documentation

_R_e_p_l_a_c_i_n_g _t_h_e _I_n_d_e_x _o_f _O_b_j_e_c_t_s

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

     Generic function for replacing the frequency of an object.

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

     frequency(x) <- value

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

       x: an object.

   value: a frequency.

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

     'frequency<-' is a generic function for replacing (or assigning)
     the frequency of an object. Currently, there is a '"zooreg"' and a
     '"zoo"' method. In both cases, the 'value' is assigned to the
     '"frequency"' of the object if it complies with the 'index(x)'.

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

     'zooreg', 'index'

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

     z <- zooreg(1:5)
     z
     as.ts(z)
     frequency(z) <- 3
     z
     as.ts(z)

