modalvalue              package:rattle              R Documentation

_C_a_l_c_u_l_a_t_e _t_h_e _m_o_d_e _o_f _a _v_e_c_t_o_r, _a_r_r_a_y _o_r _l_i_s_t.

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

     The mode is the most common or modal value of a list.  This
     function calculates the mode of a vector, array or list (lists are
     flattened).

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

     modalvalue(x, na.rm=FALSE)

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

       x: A vector, array or list.

   na.rm: Whether to remove missing values.

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

     Rattle needed this function, and R does not provide one. This
     version came from the R Wiki.

_R_e_f_e_r_e_n_c_e_s:

     R Wiki: <URL:
     http://wiki.r-project.org/rwiki/doku.php?id=tips:stats-basic:modalvalue>

