associations-class          package:arules          R Documentation

_C_l_a_s_s "_a_s_s_o_c_i_a_t_i_o_n_s" - _A _S_e_t _o_f _A_s_s_o_c_i_a_t_i_o_n_s

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

     The 'associations' class is a virtual class which is extended to
     represent mining result (e.g., sets of itemsets or rules).  The
     class provides accessors for the quality slot and a method for
     sorting the associations.

_O_b_j_e_c_t_s _f_r_o_m _t_h_e _C_l_a_s_s:

     A virtual class: No objects may be created from it.

_S_l_o_t_s:

     '_q_u_a_l_i_t_y': a data.frame for quality measures (e.g., interest
          measures as support or confidence).  Each quality measure is
          a named vector with the same length as the number of elements
          in the set of associations and each vector element belongs to
          the association with the same index.

_M_e_t_h_o_d_s:

     _i_t_e_m_s 'signature(x = "associations")'; dummy method. This method
          has to be implemented by all subclasses of 'associations' and
          return the items which make up each association as an object
          of class  'itemMatrix'.

     _l_a_b_e_l_s 'signature(object = "associations")'; dummy method. This
          method has to be implemented by all subclasses of
          'associations' and return a vector of 'length(object)' of
          labels for the elements in the association.

     _l_e_n_g_t_h 'signature(x = "associations")'; dummy method. This method
          has to be implemented by all subclasses of 'associations' and
          return the number of elements in the  association.

     _q_u_a_l_i_t_y<- 'signature(x = "associations")'; replaces the quality
          'data.frame'.  The lengths of the vectors in the data.frame
          have to equal the number of associations in the set.

     _q_u_a_l_i_t_y 'signature(x = "associations")'; returns the quality
          data.frame.

     _s_h_o_w 'signature(object = "associations")'

_S_u_b_c_l_a_s_s_e_s:

     'itemsets-class', 'rules-class'

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

     'SORT', 'WRITE', 'length', 'is.subset', 'is.superset', 'sets',
     'unique', 'itemMatrix-class'

