table2matrix: Convert a table object to a matrix

View source: R/table2matrix.R

table2matrixR Documentation

Convert a table object to a matrix

Description

Convert a table object to a matrix

Usage

table2matrix(tbl)

Arguments

tbl

a table object

Examples

## 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)

paodan/funcTools documentation built on April 1, 2024, 12:01 a.m.