centre: Centres and optionally standardizes a given numeric matrix X

Description Usage Arguments Value Examples

View source: R/PCA.R

Description

Centres and optionally standardizes a given numeric matrix X

Usage

1
centre(X, standardize = F)

Arguments

X

a matrix

standardize

a boolean declaring whether to standardize

Value

X a centred matrix

Examples

1
2
X <- matrix(seq(1:9))
centre(X)

eenticott/PCA documentation built on Jan. 10, 2021, 4:40 p.m.