demean: Demean a vector or a matrix (by column)

Description

Demean a vector or a matrix (by column)

Usage

1
demean(x)

Arguments

x

Vector or matrix

Value

Demeaned value of x

Author(s)

TszKin Julian Chan ctszkin@gmail.com

Examples

1
2
x<-matrix(1:20,ncol=2)
demean(x)

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

All documentation is copyright its authors; we didn't write any of that.