LIST                 package:arules                 R Documentation

_L_i_s_t _R_e_p_r_e_s_e_n_t_a_t_i_o_n _f_o_r _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 methods to create
     a list representation from objects based on 'itemMatrix' (e.g.,
     'transactions', 'tidLists', or 'itemsets').  These methods can be
     used for the coercion to a 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 'tidLists':
     LIST(from, decode = TRUE)

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

    from: the object to be converted into a list.

     ...: further arguments.

  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:

     Using 'LIST' with 'decode = TRUE' is equivalent to  the standard
     coercion 'as(x, "list")'. '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.

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

     'decode', 'coerce,itemMatrix,list-method', 'itemMatrix-class'

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

     data(Adult)

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

