seriesNames              package:tframe              R Documentation

_N_a_m_e_s _o_f _S_e_r_i_e_s _i_n _a _t_i_m_e _s_e_r_i_e_s _o_b_j_e_c_t

_D_e_s_c_r_i_p_t_i_o_n:

     Extract or set names of series in a time series object.

_U_s_a_g_e:

         seriesNames(x)
         ## Default S3 method:
         seriesNames(x)

         seriesNames(x) <- value 
         ## Default S3 method:
         seriesNames(x) <- value
         ## S3 method for class 'ts':
         seriesNames(x) <- value

_A_r_g_u_m_e_n_t_s:

       x: a time series object.

   value: names to be given to time series.

_V_a_l_u_e:

     The first usage returns a vector of strings with the series names.
      The assignment method makes 'names' (a vector of strings)  the
     series names of data.

_S_e_e _A_l_s_o:

     'tframed', 'seriesNamesInput', 'seriesNamesOutput'

_E_x_a_m_p_l_e_s:

         z <- matrix(rnorm(100), 50,2)
         seriesNames(z) <- c("a", "b")
         seriesNames(z)

