linkedmultiget            package:ecolitk            R Documentation

_A _f_u_n_c_t_i_o_n _t_o _l_o_o_k _f_o_r _v_a_l_u_e_s _a_c_r_o_s_s _l_i_n_k_e_d _e_n_v_i_r_o_n_m_e_n_t_s

_D_e_s_c_r_i_p_t_i_o_n:

     A function to look for values across linked environments.

_U_s_a_g_e:

     linkedmultiget(x, envir.list = list(), unique = TRUE)

_A_r_g_u_m_e_n_t_s:

       x: The keys in the first environment in the list.

envir.list: A list of environments.

  unique: Simplify the list returned by ensuring that the values for
          each key are unique.

_D_e_t_a_i_l_s:

     Environments can be considered as hashtables. The keys are
     obviously strings, but in some cases the associated values are
     also strings. This is the case for annotation environments (as
     built with the package 'AnnBuilder'). This function helps to look
     for values across several environments: the keys have associated
     values in a first environment, these values are used as keys in
     the second environments, etc...

_V_a_l_u_e:

     A list of length the length of 'x'.

_A_u_t_h_o_r(_s):

     Laurent Gautier

_S_e_e _A_l_s_o:

     'mget'

_E_x_a_m_p_l_e_s:

     data(ecoligenomeBNUM)
     data(ecoligenomeBNUM2MULTIFUN)
     data(multiFun)

     ## get 5 Affymetrix IDs
     set.seed(456)
     my.affyids <- sample(ls(ecoligenomeBNUM), 5)

     ## get the MULTIFUN annotations for them
     r <- linkedmultiget(my.affyids, list(ecoligenomeBNUM,
                         ecoligenomeBNUM2MULTIFUN, multiFun))

     print(r)

