position              package:maSigPro              R Documentation

_C_o_l_u_m_n _p_o_s_i_t_i_o_n _o_f _a _v_a_r_i_a_b_l_e _i_n _a _d_a_t_a _f_r_a_m_e

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

     Finds the column position of a character variable in the column
     names of a data frame.

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

     position(matrix, vari)

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

  matrix: matrix or data.frame with character column names 

    vari: character variable

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

     numerical. Column position for the given variable.

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

     Ana Conesa, aconesa@ivia.es

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

     x <- matrix(c(1, 1, 2, 2, 3, 3),ncol = 3,nrow = 2)
     colnames(x) <- c("one", "two", "three")
     position(x, "one") 

