filterfun             package:genefilter             R Documentation

_C_r_e_a_t_e_s _a _f_i_r_s_t _F_A_L_S_E _e_x_i_t_i_n_g _f_u_n_c_t_i_o_n _f_r_o_m _t_h_e _l_i_s_t _o_f
_f_i_l_t_e_r _f_u_n_c_t_i_o_n_s _i_t _i_s _g_i_v_e_n.

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

     This function creates a function that takes a single argument. The
     filtering functions are bound in the environment of the returned
     function and are applied sequentially to the argument of the
     returned function. When the first filter function evaluates to
     'FALSE' the function returns 'FALSE' otherwise it returns 'TRUE'.

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

     filterfun(...)

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

     ...: Filtering functions. 

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

     'filterfun' returns a function that takes a single argument. It
     binds the filter functions given to it in the environment of the
     returned function. These functions are applied sequentially (in
     the order they were given to 'filterfun'). The function returns
     'FALSE' (and exits) when the first filter function returns 'FALSE'
     otherwise it returns 'TRUE'.

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

     R. Gentleman

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

     'genefilter'

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

      set.seed(333)
      x <- matrix(rnorm(100,2,1),nc=10)
      cvfun <- cv(.5,2.5)
      ffun <- filterfun(cvfun)
      which <- genefilter(x, ffun)

