discretize               package:minet               R Documentation

_U_n_s_u_p_e_r_v_i_z_e_d _D_a_t_a _D_i_s_c_r_e_t_i_z_a_t_i_o_n

_D_e_s_c_r_i_p_t_i_o_n:

     'discretize' discretizes 'data' using the equal frequencies or
     equal width binning algorithm.

_U_s_a_g_e:

     discretize( data,disc="equalfreq",nbins=sqrt(nrow(data)) )

_A_r_g_u_m_e_n_t_s:

    data: A data.frame containing data to be discretized. The columns
          contains variables and the rows samples.

    disc: The name of the discretization method to be used :"equalfreq"
          or "equalwidth" (default : "equalfreq") - see references.

   nbins: Integer specifying the number of bins to be used for the
          discretization. By default the number of bins is set to 
          sqrt(N) where N is the number of samples.

_V_a_l_u_e:

     'discretize' returns the discretized dataset.

_A_u_t_h_o_r(_s):

     Patrick E. Meyer, Frederic Lafitte, Gianluca Bontempi

_R_e_f_e_r_e_n_c_e_s:

     Supervised and unsupervised discretization of continuous features.
     J.Dougherty, R. Kohavi, M. Sahami. ICML, 1995.

_S_e_e _A_l_s_o:

     'build.mim'

_E_x_a_m_p_l_e_s:

     data(syn.data)
     ew.data <- discretize(syn.data,"equalwidth")
     ef.data <- discretize(syn.data,"equalfreq")

