Advertisement
Guest User

Untitled

a guest
Jun 25th, 2019
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. x_matrix <- matrix(data=NA, nrow=256, ncol=4)
  2. x_matrix[, 1] <- rep(1:4, times = 1, length.out = NA, each = 64)
  3. x_matrix[, 2] <- rep(1:4, times = 4, length.out = NA, each = 16)
  4. x_matrix[, 3] <- rep(1:4, times = 16, length.out = NA, each = 4)
  5. x_matrix[, 4] <- rep(1:4, times = 64, length.out = NA, each = 1)
  6. sd(rowMeans(x_matrix))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement