col01scale              package:sfsmisc              R Documentation

_M_a_t_r_i_x _S_c_a_l_i_n_g _U_t_i_l_i_t_i_e_s

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

     'col01scale' and 'colcenter' (re)scale the columns of a matrix. 
     These are simple one-line utilities, mainly with a didactical
     purpose.

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

     colcenter (mat)
     col01scale(mat, scale.func = function(x) diff(range(x)), location.func = mean)

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

     mat: numeric matrix, to rescaled.

scale.func, location.func: two functions mapping a numeric vector to a
          single number.

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

     a matrix with the same attributes as the input 'mat'.

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

     Martin Maechler

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

     The standard R function 'scale()'.

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

     ## See the simple function definitions:

     colcenter ## simply one line

     col01scale# almost as simple

