standard {lazy.tools} | R Documentation |
Column standardization of a data frame, matrix, or vector
standard(X, center = 0, vardef = "n")
X |
data frame, matrix, or vector |
center |
= 1 to perform column centering only. |
vardef |
= "n-1" to use unbiased variance |
When X is a data frame or matrix, the colums of which
will be standardized.
NaN will be returned for those variables with 0 variance.
The standardized input.
standard( data.frame(id=paste("id",1:5,sep=""), diag(5), a="a") )