Center and scale a dataset.

center.scale(X)

Arguments

X

a numeric matrix (or data frame) to center and scaled. NAs not allowed.

Value

center.scale returns a centered and scaled matrix.

Author

Celine Brouard <celine.brouard@inrae.fr> Jerome Mariette <jerome.mariette@inrae.fr> Nathalie Vialaneix <nathalie.vialaneix@inrae.fr>

Examples

data("nutrimouse")
if (FALSE) {
 nutrimouse.sc <- center.scale(nutrimouse$gene)
}