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)

