reverseSplit package:Biobase R Documentation _A _f_u_n_c_t_i_o_n _t_o _r_e_v_e_r_s_e _t_h_e _r_o_l_e _o_f _n_a_m_e_s _a_n_d _v_a_l_u_e_s _i_n _a _l_i_s_t. _D_e_s_c_r_i_p_t_i_o_n: Given a list with names 'x' and values in a set 'y' this function returns a list with names in 'y' and values in 'x'. _U_s_a_g_e: reverseSplit(inList) _A_r_g_u_m_e_n_t_s: inList: A named list with values that are vectors. _D_e_t_a_i_l_s: First the list is unrolled to provide a two long vectors, names are repeated, once for each of their values. Then the names are 'split' by the values. This turns out to be useful for inverting mappings between one set of identifiers and an other. _V_a_l_u_e: A list with length equal to the number of distinct values in the input list and values from the names of the input list. _A_u_t_h_o_r(_s): R. Gentleman _S_e_e _A_l_s_o: 'split' _E_x_a_m_p_l_e_s: l1 = list(a=1:4, b=c(2,3), d=c(4,5)) reverseSplit(l1)