Last active
March 19, 2020 17:29
-
-
Save NyaGarcia/6594736ec384532945ed1755c48d00bc to your computer and use it in GitHub Desktop.
Three way contingency table with ftable()
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
> ftable(mtcars$cyl, mtcars$carb, mtcars$gear) | |
3 4 5 | |
4 1 1 4 0 | |
2 0 4 2 | |
3 0 0 0 | |
4 0 0 0 | |
6 0 0 0 | |
8 0 0 0 | |
6 1 2 0 0 | |
2 0 0 0 | |
3 0 0 0 | |
4 0 4 0 | |
6 0 0 1 | |
8 0 0 0 | |
8 1 0 0 0 | |
2 4 0 0 | |
3 3 0 0 | |
4 5 0 1 | |
6 0 0 0 | |
8 0 0 1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment