table.to.data: Table -> data.frame

View source: R/util.R

table.to.dataR Documentation

Table –> data.frame

Description

Creates a data.frame from a table

Usage

table.to.data(x)

Arguments

x

A matrix or table representing the cross tabulation of two variables

Value

A two column data.frame where each row is an observation and each column is a variable.

See Also

xtabs

Examples

tab<-matrix(c(4,5,6,9,7,3),ncol=3)
tab
table.to.data(tab)


Deducer documentation built on June 8, 2025, 1:21 p.m.