View source: R/DataProcesssingFunctions.R

NormalizeMatrix | R Documentation |

A function for normalizing (scaling and centering) a matrix.

```
NormalizeMatrix(X, method = c("standard", "robust", "range", "none"),
type = c("global", "rowwise", "columnwise"), na.rm = TRUE)
```

`X` |
a numeric matrix(like object) |

`method` |
type of scaling to perform, |

`type` |
how should normalization be applied. |

`na.rm` |
logical value, ignore NA values or not. |

Scaling and centering quantities are stored as attributes.

The possibly centered and scaled matrix. Scaling and centering quantities are stored as attributes.

Chad Hammerquist

```
x = matrix(1:10, ncol = 2)
NormalizeMatrix(x)
```

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.