medianWithoutNA             package:maDB             R Documentation

_C_a_l_c_u_l_a_t_i_n_g _t_h_e _m_e_d_i_a_n _b_y _e_x_c_l_u_d_i_n_g _a_l_l _N_A _a_n_d _N_U_L_L _v_a_l_u_e_s

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

     'medianWithoutNA' This function calculates the median from the
     data submitted by excluding all NA and NULL values.

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

     medianWithoutNA(Data)

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

    Data: A vector containing the values from which the median should
          be calculated. NA and NULL values are removed before the
          calculation.

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

     Simple function to calculate the median from a values vector.

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

     Johannes Rainer

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

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

     data <- c(2,3,5,1,NA,NULL,3,NA)
     data
     medianWithoutNA(data)

