Advertisement
Guest User

Untitled

a guest
Oct 7th, 2015
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. AA12 BB12
  2. AA1 AA2 BB1 BB2
  3. R1 ac bc bc a
  4. R12 R2 de bc cc b
  5. R3 dc ec dc c
  6. R34 R4 gc gc gc d
  7.  
  8. > x <- ftable(mtcars[c("cyl", "vs", "am", "gear")])
  9. >
  10. > ftable(x, row.vars = c(2, 4))
  11.  
  12.  
  13.  
  14. cyl 4 6 8
  15. am 0 1 0 1 0 1
  16. vs gear
  17. 0 3 0 0 0 0 12 0
  18. 4 0 0 0 2 0 0
  19. 5 0 1 0 1 0 2
  20. 1 3 1 0 2 0 0 0
  21. 4 2 6 2 0 0 0
  22. 5 0 1 0 0 0 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement