eql                 package:cwhtool                 R Documentation

_C_h_e_c_k _o_n _e_q_u_a_l_i_t_y, _i_n_c_l_u_d_i_n_g _N_A==_N_A _a_n_d _N_a_N==_N_a_N.

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

     'my.table' checks two vectors on equality, two NA's and two NaN's
     compare as equal.

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

     eql(x, y)

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

    x, y: vectors of equal length.

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

     A vector of logicals indicating the result of the element by
     element comparison.The elements of shorter vectors are recycled as
     necessary.

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

     Christian W. Hoffmann, christian.hoffmann@wsl.ch, <URL:
     http://www.wsl.ch/staff/christian.hoffmann>, extending an idea by
     Peter Dalgaard, p.dalgaard@biostat.ku.dk

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

       eql(c(1,2,3),c(1,3)) #>  TRUE FALSE FALSE
       eql(c(1,2,3),c(1,2)) #>  TRUE  TRUE FALSE
       eql(c(NA,NaN,2,3),c(NA,NaN,1,2)) #>  TRUE  TRUE FALSE FALSE

