addColumn               package:iSPlot               R Documentation

_A_d_d _a _c_o_l_u_m_n _t_o _a _d_a_t_a_f_r_a_m_e _o_r _m_a_t_r_i_x

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

     addColumn adds a column to a dataframe or matrix.  The only
     checking this  function performs is that the data vector is of the
     right length.

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

     addColumn(dataF, data, colName)

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

   dataF: the dataframe or matrix 

    data: the data vector, which must be the same length as the first
          dimension of the dataframe or matrix 

 colName: the name of the column 

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

     the dataframe or matrix with the added column is returned

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

     Elizabeth Whalen

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

     'loadDFData'

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

       data(USArrests)
       x<-USArrests
       y<-addColumn(x,rep("red",dim(x)[1]),"color")

