itemFrequency             package:arules             R Documentation

_G_e_t_t_i_n_g _F_r_e_q_u_e_n_c_y/_S_u_p_p_o_r_t _f_o_r _S_i_n_g_l_e _I_t_e_m_s

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

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

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

     itemFrequency(x, ...)

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

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

       x: an object.

     ...: further arguments are passed on.

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

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

     'itemFrequency' returns a named numeric vector.  Each element is
     the frequency/support of the corresponding item in object 'x'. 
     The items appear in the vector in the same order as in the binary
     matrix in 'x'.

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

     'itemFrequencyPlot', 'itemMatrix-class', 'transactions-class'

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

     data("Adult")
     itemFrequency(Adult, type = "relative")

