combine                package:arules                R Documentation

_C_o_m_b_i_n_i_n_g _O_b_j_e_c_t_s

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

     Provides the S4 methods to combine several objects based on
     'itemMatrix' into a single object.

     Note, use 'union' rather than 'c' to combine several mined
     'itemsets' (or 'rules') into a single set.

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

     ## S4 method for signature 'itemMatrix':
     c(x, ..., recursive = FALSE)

     ## S4 method for signature 'transactions':
     c(x, ..., recursive = FALSE)

     ## S4 method for signature 'rules':
     c(x, ..., recursive = FALSE)

     ## S4 method for signature 'itemsets':
     c(x, ..., recursive = FALSE)

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

       x: first object.

     ...: further objects of the same class as 'x' to be combined.

recursive: a logical. If 'recursive=TRUE',  the function recursively
          descends through lists combining all their elements into a
          vector.

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

     An object of the same class as 'x'.

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

     'itemMatrix-class', 'transactions-class', 'rules-class',
     'itemsets-class'

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

     data("Adult")

     ## combine transactions
     a1 <- Adult[1:10]
     a2 <- Adult[101:110]

     aComb <- c(a1, a2)
     summary(aComb)

     ## combine rules
     r1 <- apriori(Adult[1:1000])
     r2 <- apriori(Adult[1001:2000])
     rComb <- unique(c(r1, r2)) 
     rComb

