

median {base}                                R Documentation

_M_e_d_i_a_n _V_a_l_u_e

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

     Compute the sample median of the vector of values given
     as its argument.

_U_s_a_g_e_:

     median(x, na.rm=FALSE)

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

       x: a numeric vector containing the values whose
          median is to be computed.

   na.rm: a logical value indicating whether `NA' values
          should be stripped before the computation pro-
          ceeds.

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

     `quantile' for general quantiles.

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

     median(1:4)# = 2.5 [even number]
     median(c(1:3,100,1000))# = 3 [odd, robust]

