length                package:arules                R Documentation

_G_e_t_t_i_n_g _t_h_e _N_u_m_b_e_r _o_f _E_l_e_m_e_n_t_s

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

     S4 methods for 'length' which return the number of elements of
     objects defined in the package 'arules'.

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

     ## S4 method for signature 'rules':
     length(x)

     ## S4 method for signature 'itemsets':
     length(x)

     ## S4 method for signature 'tidLists':
     length(x)

     ## S4 method for signature 'itemMatrix':
     length(x)

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

       x: an object of class  'transactions', 'rules', 'itemsets',
          'tidLists', or 'itemMatrix'. 

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

     For 'itemMatrix' and 'transactions' the length is defined as the
     number of rows (transactions) in the binary incidence matrix.

     For sets of associations ('rules', 'itemsets' and 'associations'
     in general) the length is defined as the number of elements in the
     set (i.e., the number of rules or itemsets).

     For 'tidLists' the length is the number of lists (one per item or
     itemset) in the object.

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

     An integer scalar giving the "length" of 'x'.

