`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) )*

1 |

`m` |
Input a matrix or a vector with numeric elements. |

`axis` |
An integer indicating which axis of |

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

`na.rm` |
A boolean indicating whether |

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.

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`

.

R. Gentleman

1 2 |

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.