na2false              package:codelink              R Documentation

_S_e_t _N_A_s _t_o _F_A_L_S_E

_D_e_s_c_r_i_p_t_i_o_n:

     Takes a logical vector as input and set all NAs to FALSE. This may
     happens when comparison is done on NA values.

_U_s_a_g_e:

             na2false(x)

_A_r_g_u_m_e_n_t_s:

       x: a logical vector.

_V_a_l_u_e:

     A logical vector without NAs.

_A_u_t_h_o_r(_s):

     Diego Diez

_E_x_a_m_p_l_e_s:

     ## Not run: 
         a <- c(1, 2, 3, NA, 5)
         b <- c(5, 4, NA, 2, 1)
         sel <- a > b
         sel <- na2false(sel)
     ## End(Not run)

