t2m: Table to matrix

Description Usage Arguments Details Value Examples

View source: R/t2m.R

Description

t2m Convert table results to matrix

Usage

1
t2m(x)

Arguments

x

Result from table

Details

Converts table into matrix.

Value

A matrix.

Examples

1
2
3
x1 <- sample(c('a','b'),20,replace = TRUE)
x2 <- sample(c('0','1'),20,replace = TRUE)
t2m(table(x1,x2))

sean-cho/toolkit documentation built on May 29, 2019, 4:24 p.m.