Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- > m = matrix(0, nrow=2, ncol=3)
- > dim(m)
- [1] 2 3
- > dim(m[1,])
- NULL
- > f = dbGetQuery("SELECT id, name, age FROM users")
- > dim(f)
- [1] 300 3
- > dim(f[1,])
- [1] 1 3
- > m[1,] = f[1,]
- Error in m[1, ] = f[1, ] :
- incorrect number of subscripts on matrix
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement