isHomoList             package:KEGGgraph             R Documentation

_D_e_t_e_r_m_i_n_e_s _w_h_e_t_h_e_r _a _l_i_s_t _i_s _h_o_m_o_g_e_n_o_u_s

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

     If a list contains objects of the same class with the given class
     name, we call it a homogenous list and the function returns
     'TRUE', otherwise it returns 'FALSE'.

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

     isHomoList(list, class)

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

    list: A list 

   class: The class name to be validated

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

     logical

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

     Jitao David Zhang <URL: mailto:j.zhang@dkfz.de>

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

     testlist <- list("home1"="Hamburg","home2"="Heidelberg",
     "home3"="Tianjin")
     isHomoList(testlist,"character")
     testlist$lucky <- 16
     isHomoList(testlist,"character")

