This preview has intentionally blurred sections. Sign up to view the full version.View Full Document
Unformatted text preview: cbind(x,y) → bind them column wise rbind(x,y) → bind them row wise rbind(z,z) go over this nr means nrow means how many rows to make it go over z<-matrix(c….),nr=2,byrow=T) y%*%x matrix multiplication y*z element multiplication t(z) transpose matrix z solve(x) compute the inverse of x attach(trees) now i’m working with the tree object. ..look at the variables in trees apply(trees,2,mean) apply mean to the tree object by column [ 1 is row, 2 is column] as.characters the function reads the input as characters one by one rnorm(how many, mean, standard deviation...
View Full Document
- Fall '13
- Time series analysis, David Stoffer, robert shumway, y*z element multiplication