meanFun             package:marrayTools             R Documentation

_A _f_u_n_c_t_i_o_n _t_h_a_t _c_a_l_c_u_l_a_t_e_s _t_h_e _a_v_e_r_a_g_e _o_f _e_a_c_h _g_e_n_e _i_n _a
_m_u_l_t_i-_s_l_i_d_e _m_i_c_r_o_a_r_r_a_y _e_x_p_e_r_i_m_e_n_t

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

     Returns a function that calculate 'mean'.

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

     meanFun(y = NULL, na.rm = TRUE)

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

       y: vector of class labels. Must consist of integers 1 and 2.

   na.rm: If TRUE, the NA's are omit from the analysis.

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

     Returns a function with bindings for 'y' (class labels) that will
     calculate average across slides.

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

     Yee Hwa (Jean) Yang

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

     'mean'

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

     x <- rnorm(10)
     y <- meanFun()
     y(x)

