centerData: Center data matrix.

Description Usage Arguments Value Note Author(s) References Examples

Description

Center data matrix to 0 for each variable by removing the means.

Usage

1
centerData(X, rm.na = TRUE, meanvalue = NULL)

Arguments

X

The data set: samples x features. Each feature will be centered.

rm.na

Ignore NAs.

meanvalue

Can be used to set a desired center value. The default is 0.

Value

Centered data matrix.

Note

Note that the model assumes samples x features matrix, and centers each feature.

Author(s)

Leo Lahti leo.lahti@iki.fi

References

See citation("dmt").

Examples

1
#centerData(X)

dmt documentation built on May 1, 2019, 8:12 p.m.

Related to centerData in dmt...