table2matrix | R Documentation |
Convert a table object to a matrix
table2matrix(tbl)
tbl |
a table object |
## Not run:
a = sample(letters[1:5], 20, replace = T)
b = sample(letters[1:5], 20, replace = T)
tbl = table(a, b)
View(tbl)
mat = table2matrix(tbl)
View(mat)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.