itemSupport              package:arules              R Documentation

_G_e_t_t_i_n_g _t_h_e _S_u_p_p_o_r_t _o_f _a_l_l _I_t_e_m_s

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

     Provides the generic function 'itemSupport' and S4 methods to get
     the support of all items in a objects based on 'itemMatrix'.  For
     example, it is used to get the item support from an object of
     class 'transactions' without mining.

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

     itemSupport(x, ...)
     ## S4 method for signature 'itemMatrix':
     itemSupport(x, type)
     ## S4 method for signature 'itemMatrix':
     itemSupport(x, type)

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

       x: an object.

     ...: further arguments are passed on.

    type: a character specifying  if '"relative"'  support or 
          '"absolute"'  support (item counts) is returned. (default: 
          '"relative"'). 

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

     'itemSupport' returns a named numeric vector.  Each element is the
     itemSupport of the corresponds to an item in object 'x' with the
     same name. The items in the vector appear in the order of the item
     appearance in the binary matrix.

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

     Michael Hahsler

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

     'itemMatrix-class', 'transactions-class'

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

     data("Adult_transactions")
     itemSupport(Adult_transactions)

