Learn R Programming

vtree (version 5.6.5)

crosstabToCases: Convert a crosstabulation into a data frame of cases.

Description

Convert a table of crosstabulated counts into a data frame of cases.

Usage

crosstabToCases(x)

Value

Returns a data frame of cases.

Arguments

x

a matrix or table of frequencies representing a crosstabulation.

Examples

Run this code
# The Titanic data set is in the datasets package.
# Convert it from a 4 x 2 x 2 x 2 crosstabulation 
# to a 4-column data frame of 2201 individuals
titanic <- crosstabToCases(Titanic)

Run the code above in your browser using DataLab