numberof               package:cwhtool               R Documentation

_C_o_u_n_t _t_h_e _n_u_m_b_e_r _e_l_e_m_e_n_t_s _t_h_a_t _s_a_t_i_s_f_y _a _c_o_n_d_i_t_i_o_n.

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

     'numberof' counts the number elements that satisfy a condition.

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

     numberof(x, f)

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

       x: Numerical array.

       f: Logical function emulating the condition to be satisfied.

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

     Christian W. Hoffmann, christian.hoffmann@wsl.ch, <URL:
     http://www.wsl.ch/staff/christian.hoffmann>

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

       numberof(c(1:100,NA,NA,NaN),function(x) !is.na(x))

