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)

