col_scale: Center and/or normalize each column of a matrix

Description Usage Arguments Value

View source: R/code_full_new.R

Description

Center and/or normalize each column of a matrix

Usage

1
col_scale(X, center = T, normalize = F)

Arguments

X

a numeric matrix with NAs or "Incomplete" matrix object (see softImpute package)

center

center each column of X if center == TRUE. The default value is TRUE.

normalize

normalize each column of X such that its sample variance is 1 if normalize == TRUE. The default value is False.

Value

a centered and/or normalized matrix of the same dimension as X.


primePCA documentation built on Aug. 5, 2021, 5:06 p.m.

Related to col_scale in primePCA...