moda                  package:dprep                  R Documentation

_C_a_l_c_u_l_a_t_i_n_g _t_h_e _M_o_d_e

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

     This function calculates the mode of a vector

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

     moda(x, na.rm = TRUE)

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

       x: a numeric vector 

   na.rm: boolean value that indicates the presence of missing values. 

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

     The function returns the mode or modes of a vector. If a tie
     exists, all values that are tied are returned.

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

    moda: a numeric value representing the mode of the vector

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

     Caroline Rodriguez and Edgar Acuna

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

     #---- Calculating the mode ----
     x=c(1,4,2,3,4,6,3,7,8,5,4,3)
     moda(x)

