SORT                 package:arules                 R Documentation

_S_o_r_t_i_n_g _A_s_s_o_c_i_a_t_i_o_n_s

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

     Provides the generic function 'SORT' and the S4 method to sort 
     elements in class 'associations' (e.g., itemsets or rules).

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

     SORT(x, ...)
     ## S4 method for signature 'associations':
     SORT(x, by = "support", decreasing = TRUE)

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

       x: an object to be sorted.

     ...: further arguments are passed on.

      by: a character specifying the quality measure stored in 'x' to
          be used to sort 'x'.

decreasing: logical.  Should the sort be increasing or decreasing?

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

     Michael Hahsler

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

     'associations-class'

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

     data("Adult_transactions")

     ## Mine frequent itemsets with Eclat.
     fsets <- eclat(Adult_transactions, parameter = list(supp = 0.5))

     ## Print the 5 itemsets with the highest support as a list.
     as(SORT(fsets)[1:5], "list")

