powered by
cent
cent(X)
Returns a centered vector
vector to be centered
X<-c(1:10) cent(X)
Run the code above in your browser using DataLab