table2d: table2d

Description Usage Arguments Value Examples

Description

Converts a one dimensional table to a two dimensional table.

Usage

1
table2d(tab, horizontal = FALSE, header = NULL)

Arguments

tab

table: one dimensional table to convert

horizontal

logical: horizontal or vertical table (default: FALSE)

header

character: header for the single column or row

Value

a two dimensional table

Examples

1
2
3
4
5
tab <- table(round(rnorm(100)))
tab
table2d(tab)
str(tab)
str(table2d(tab, horizontal=TRUE))

sigbertklinke/mmstat documentation built on May 14, 2019, 8:36 a.m.