Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- mat <- matrix(1:25, nrow = 5, byrow = T)
- for (row in 1:nrow(mat)) {
- for (col in 1:ncol(mat)) {
- print(mat[row, col])
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement