Advertisement
Guest User

Untitled

a guest
Nov 26th, 2014
148
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. completeMatrix = matrix(c(1:20), nrow=10, ncol=2)
  2. for (i in 1:3) {
  3. newMatrix <- matrix(c(1:20), nrow=10, ncol=2)
  4. completeMatrix <- abind(completeMatrix, newMatrix , along = 3)
  5. }
  6. newMatrix <- matrix(c(1:18), nrow=9, ncol=2)
  7. completeMatrix <- abind(completeMatrix, newMatrix, along = 3)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement