Learn R Programming

HKRbook (version 0.1.3)

table2dataframe: table2dataframe

Description

Converts a table to a full data frame.

Usage

table2dataframe(tab, ...)

Value

a data frame with sum(tab) rows and length(dim(tab)) cols

Arguments

tab

table: contingency table

...

further parameters given to base::as.data.frame.table

Examples

Run this code
table2dataframe(Titanic)

Run the code above in your browser using DataLab