testEqual               package:tframe               R Documentation

_C_o_m_p_a_r_e _T_w_o _O_b_j_e_c_t_s

_D_e_s_c_r_i_p_t_i_o_n:

     Generic function to compare two objects.  The methods return a 
     logical value, TRUE if the objects are the same type and value and
     FALSE otherwise. The default compares array values but not
     attributes or class. Some descriptive information in the objects
     may be ignored.

_U_s_a_g_e:

         testEqual(obj1, obj2, fuzz = 0)
         ## Default S3 method:
         testEqual(obj1, obj2, fuzz = 1e-16)
         ## S3 method for class 'array':
         testEqual(obj1, obj2, fuzz = 1e-16)
         ## S3 method for class 'list':
         testEqual(obj1, obj2, fuzz = 1e-16)
         ## S3 method for class 'matrix':
         testEqual(obj1, obj2, fuzz = 1e-16)
         ## S3 method for class 'numeric':
         testEqual(obj1, obj2, fuzz = 1e-16)
         

_A_r_g_u_m_e_n_t_s:

obj1, obj2: Objects of the same class.

    fuzz: Differences less than fuzz are ignored.

_D_e_t_a_i_l_s:

     The functions for comparing numeric values used in the default
     method for this  generic replacement.

_V_a_l_u_e:

     TRUE or FALSE.

_S_e_e _A_l_s_o:

     'testEqualtframes'

_E_x_a_m_p_l_e_s:

     testEqual(matrix(1:10,10,2), array(1:10, c(10,2)))
     testEqual(matrix(1:10,10,1),1:10)

