Learn R Programming

pgirmess (version 2.0.3)

tabcont2categ: Convert a contingency table (data.frame) into a presence/absence table of categories

Description

Convert a contingency table (data frame) into a data.frame of factors

Usage

tabcont2categ(tab)

Value

A data frame

Arguments

tab

A data.frame (contingency table)

Details

Convert a contingency table (data frame) into a data.frame of factors

Examples

Run this code
mydata<-as.data.frame(matrix(rpois(9,5),nr=3,nc=3))
names(mydata)<-LETTERS[1:3]
row.names(mydata)<-letters[1:3]

tabcont2categ(mydata)

Run the code above in your browser using DataLab