tab2df {caroline}R Documentation

Table to Data Frame

Description

Convert a table to a dataframe while perserving the same number of columns and rows and names of each.

Usage

tab2df(x)

Arguments

x a table class object (output from the table command).

See Also

table

Examples

tab2df(table(c(1,2,1,1,1,2,2,2,2),c('a','b','b','a','b','b','a','b','b')))

[Package caroline version 0.1-7 Index]