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',  'class:aggregator'

_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 <- mget(letters[1:11], env=aggenv(agg1), ifnotfound=NA)
       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

