comparelists              package:made4              R Documentation

_R_e_t_u_r_n _t_h_e _i_n_t_e_r_s_e_c_t, _d_i_f_f_e_r_e_n_c_e _a_n_d _u_n_i_o_n _b_e_t_w_e_e_n _2 _v_e_c_t_o_r_s

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

     This is a very simple function which compares two vectors, x and
     y. It returns the intersection and unique lists. It is useful for
     comparing two genelists.

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

     comparelists(dx,dy, ...)
     ## S3 method for class 'comparelists':
     print(x, ...)

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

   dx,dy: A vector.

       x: An object from 'comparelists'.

     ...: further arguments passed to or from other methods.

_D_e_t_a_i_l_s:

     reports on the intersect, difference and union between two lists.

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

     An object of class 'comparelists':

intersect: Vector containing the intersect between x and y

Set.Diff: Vector containing the elements unique to X obtained using
          'setdiff' 

    XinY: Numeric, indicating the number of elements of x in y

    YinX: Numeric, indicating the number of elements of y in x

Length.X: Numeric, the number of elements in x

Length.Y: Numeric, the number of elements in y

     ...: Further arguments passed to or from other methods

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

     Aedin Culhane

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

     See also  'intersect', 'setdiff'

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

     a<-sample(LETTERS,20)
     b<-sample(LETTERS,10)
     z<-comparelists(a,b)
     z$Set.Diff
     z$intersect

