equals                 package:R.oo                 R Documentation

_C_o_m_p_a_r_e_s _a_n _o_b_j_e_c_t _w_i_t_h _a_n_o_t_h_e_r

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

     Compares an object with another and returns 'TRUE' if they are
     equal. The equal property must be

     1) _reflexive_, i.e. 'equals(o1,o1)' should be 'TRUE'.

     2) _symmetric_, i.e. 'equals(o1,o2)' is 'TRUE' if and only if
     'equals(o2,o1)' is 'TRUE'.

     3) _transitive_, i.e. 'equals(o1,o2)' is 'TRUE' and
     'equals(o2,o3)' is 'TRUE', then 'equals(o1,o3)' should be 'TRUE'.

     5) _consistent_, i.e. 'equals(o1,o2)' should return the same
     result on multiple invocations as long as nothing has changed.

     6) 'equals(o1,''NULL'')' should return 'FALSE'.

     By default 'identical'() is used.

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

     ## Default S3 method:
     equals(object, other, ...)

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

object, other: Objects to be compared.

     ...: Not used.

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

     Returns 'TRUE' if the objects are equal, otherwise 'FALSE'.

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

     Henrik Bengtsson (<URL: http://www.braju.com/R/>)

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

     'identical'().

