Aggregate              package:Biobase              R Documentation

_A _s_i_m_p_l_e _a_g_g_r_e_g_a_t_i_o_n _m_e_c_h_a_n_i_s_m.

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

     Given an environment and an aggregator (an object of class
     'aggregate' simple aggregations are made.

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

     Aggregate(x, agg)

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

       x: The data to be aggregated. 

     agg: The aggregator to be used. 

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

     Given some data, 'x' the user can accumulate (or aggregate)
     information in 'env' using the two supplied functions. See the
     accompanying documentation for a more complete example of this
     function and its use.

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

     No value is returned. This function is evaluated purely for side
     effects. The symbols and values in 'env' are altered.

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

     R. Gentleman

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

     'new.env'

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

       agg1 <- new("aggregator")
       Aggregate(letters[1:10], agg1)
       #the first 10 letters should be symbols in env1 with values
       # of 1
       Aggregate(letters[5:11], agg1)
       ## now letters[5:10] should have value 2
       bb <- multiget(letters[1:11], env=aggenv(agg1))
       t1 <- as.numeric(bb); names(t1) <- names(bb)
       t1
     # a b c d e f g h i j k 
     # 1 1 1 1 2 2 2 2 2 2 1 

