pOverA              package:genefilter              R Documentation

_A _f_i_l_t_e_r _f_u_n_c_t_i_o_n _t_o _f_i_l_t_e_r _a_c_c_o_r_d_i_n_g _t_o _t_h_e _p_r_o_p_o_r_t_i_o_n _o_f
_e_l_e_m_e_n_t_s _l_a_r_g_e_r _t_h_a_n _A.

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

     A function that returns a function with values for 'A', 'p' and
     'na.rm' bound to the specified values. The function takes a single
     vector, 'x', as an argument. When the returned function is
     evaluated it returns 'TRUE' if the proportion of values in 'x'
     that are larger than 'A' is at least 'p'.

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

     pOverA(p=0.05, A=100, na.rm=TRUE)

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

       A: The value to be exceeded. 

       p: The proportion that need to exceed 'A' for 'TRUE' to be
          returned. 

   na.rm: If 'TRUE' then 'NA''s are removed. 

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

     'pOverA' returns a function with bindings for 'A', 'p' and
     'na.rm'. This function evaluates to 'TRUE' if the proportion of
     values in 'x' that are larger than 'A' exceeds 'p'.

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

     R. Gentleman

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

     'cv'

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

       ff<- pOverA(p=.1, 10)
       ff(1:20)
       ff(1:5)

