Learn R Programming

netresponse (version 1.32.2)

centerData: Center data matrix.

Description

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

Usage

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.

References

See citation("netresponse").

Examples

Run this code
#centerData(X)

Run the code above in your browser using DataLab