vec2mat2            package:multcompView            R Documentation

_C_o_n_v_e_r_t _a _v_e_c_t_o_r _o_f _h_y_p_h_e_n_a_t_e_d _n_a_m_e_s _i_n_t_o
_a _c_h_a_r_a_c_t_e_r _m_a_t_r_i_x.

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

     Convert a vector of hyphenated names into a character matrix with
     2 columns containing  the names split in each row.

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

     vec2mat2(x, sep="-")

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

       x: Vector of hyphenated names  

     sep: "strsplit" character to apply to names(x).   

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

     If each element of x does not contain exactly 1 "sep" character,
     an error is issued.

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

     A character matrix with rownames = x and with the character string
     preceeding the "sep" character in the first column and the
     character string following the "sep" character in the second
     column.

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

     Spencer Graves

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

     'vec2mat' 'multcompLetters'

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

     vec2mat2(c("a-b", "a-c", "b-c"))

     vec2mat2(c("a-b", "b-a"))

      

