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")

