genescale             package:genefilter             R Documentation

_S_c_a_l_e_s _a _m_a_t_r_i_x _o_r _v_e_c_t_o_r.

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

     'genescale' returns a scaled version of the input matrix m by
     applying the following formula to each column of the matrix: {   
     y[i] = ( x[i] - min(x) ) / ( max(x) - min(x) ) }

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

     genescale(m, axis=2, method=c("Z", "R"), na.rm=TRUE)

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

       m: Input a matrix or a vector with numeric elements. 

    axis: An integer indicating which axis of 'm' to scale.

  method: Either "Z" or "R", indicating whether a Z scaling or a range
          scaling should be performed.

   na.rm: A boolean indicating whether 'NA''s should be removed.

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

     Either the rows or columns of 'm' are scaled. This is done either
     by subtracting the mean and dividing by the standard deviation
     ("Z") or by subtracing the minimum and dividing by the range.

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

     A scaled version of the input. If 'm' is a 'matrix' or a
     'dataframe' then the dimensions of the returned value agree with
     that of 'm', in both cases the returned value is a 'matrix'.

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

     R. Gentleman

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

     'genefinder','scale'

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

       m <- matrix(1:12, 4, 3)
       genescale(m)

