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)

