decscale                package:dprep                R Documentation

_D_e_c_i_m_a_l _S_c_a_l_i_n_g

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

     This is a function to apply decimal scaling to a matrix or
     dataframe. Decimal scaling transforms the data into [-1,1] by
     finding k such that  the absolute value of the maximum value of
     each attribute divided by 10\^k   is less than or equal to 1.

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

     decscale(data)

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

    data: dataset to be scaled

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

     Uses the scale function found in the R base package.

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

decdata : original matrix that has been scaled by decimal scaling

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

     Caroline Rodriguez and Edgar Acuna

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

     data(sonar)
     def=par(mfrow=c(2,1))
     plot(sonar[,2])
     dssonar=decscale(sonar)
     plot(dssonar[,2])
     par(def)

