Last chance! 50% off unlimited learning
Sale ends in
# NOT RUN {
# create toy matrix
mold <- replicate(3,rnorm(50))
colnames(mold) <- paste("x",1:3,sep="")
head(mold)
# create new matrix
mnew <- getsquares(mold)
head(mnew)
# }
Run the code above in your browser using DataLab