cv                package:genefilter                R Documentation

_A _f_i_l_t_e_r _f_u_n_c_t_i_o_n _f_o_r _t_h_e _c_o_e_f_f_i_c_i_e_n_t _o_f _v_a_r_i_a_t_i_o_n.

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

     'cv' returns a function with values for 'a' and 'b' bound. This
     function takes a single argument. It computes the coefficient of
     variation for the input vector and returns 'TRUE' if the
     coefficient of variation is between 'a' and 'b'. Otherwise it
     returns 'FALSE'

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

     cv(a=1, b=Inf, na.rm=TRUE)

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

       a: The lower bound for the cv. 

       b: The upper bound for the cv. 

   na.rm: If set to 'TRUE' any 'NA''s will be removed. 

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

     The coefficient of variation is the standard deviation divided by
     the  absolute value of the mean.

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

     It returns a function of one argument. The function has an
     environment with bindings for 'a' and 'b'.

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

     R. Gentleman

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

     'pOverA', 'kOverA'

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

       set.seed(-3)
       cvfun <- cv(1,10)
       cvfun(rnorm(10,10))
       cvfun(rnorm(10))

