LIST                 package:arules                 R Documentation

_C_r_e_a_t_i_n_g _a _L_i_s_t _R_e_p_r_e_s_e_n_t_a_t_i_o_n _f_r_o_m _O_b_j_e_c_t_s _B_a_s_e_d _o_n "_i_t_e_m_M_a_t_r_i_x"

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

     Provides the generic function 'LIST' and the S4 method to create a
     list representation from objects based on 'itemMatrix' (e.g.,
     'transactions', 'tidList', or 'itemsets'). These methods are also
     used for the coercion to 'list'.

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

     LIST(from, ...)
     ## S4 method for signature 'itemMatrix':
     LIST(from, decode = TRUE)
     ## S4 method for signature 'transactions':
     LIST(from, decode = TRUE)
     ## S4 method for signature 'tidList':
     LIST(from, decode = TRUE)

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

    from: the object to be converted into a list.

     ...: further arguments are passed on.

  decode: a logical controlling whether the items/transactions are
          decoded from the column numbers internally used by
          'itemMatrix' to the names stored in the object 'from'.  The
          default behavior is to decode. 

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

     'LIST' returns the object 'from' as a list of vectors. Each vector
     represents one row of the 'itemMatrix' (e.g., items in a
     transaction or itemset).

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

     a '"list"' primitive.

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

     Michael Hahsler

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

     'itemMatrix-class'

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

     data(Adult_transactions)

     LIST(Adult_transactions[1:5])
     LIST(Adult_transactions[1:5], decode = FALSE)

