commontail             package:mathgraph             R Documentation

_C_o_m_m_o_n _S_t_r_i_n_g_s _i_n _T_a_i_l

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

     Takes a list of character vectors and returns the longest vector
     of strings that is common to the ends of all of the components in
     the list.

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

     commontail(x)

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

       x: list of character vectors. 

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

     This is useful to get the class that is common to a number of
     objects.

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

     a character vector containing the common elements of the tails of
     all the components in 'x'.
      The result is 'NULL' if there are no common elements.

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

     Nick Efthymiou

_R_e_f_e_r_e_n_c_e_s:

     S Poetry, Patrick J. Burns

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

     'inherits', 'intersect'

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

     commontail(list(c("subA", "cls1"), c("subB", "subA", "cls1")))
     commontail(list(c("subA", "cls2"), c("subB", "subA", "cls1")))

