Advertisement
Guest User

Untitled

a guest
Oct 23rd, 2016
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. > m = matrix(0, nrow=2, ncol=3)
  2. > dim(m)
  3. [1] 2 3
  4. > dim(m[1,])
  5. NULL
  6. > f = dbGetQuery("SELECT id, name, age FROM users")
  7. > dim(f)
  8. [1] 300 3
  9. > dim(f[1,])
  10. [1] 1 3
  11. > m[1,] = f[1,]
  12. Error in m[1, ] = f[1, ] :
  13. incorrect number of subscripts on matrix
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement