tabcont2categ {pgirmess}R Documentation

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)

Arguments

tab A data.frame (contingency table)

Details

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

Value

A data frame

Author(s)

Patrick Giraudoux <pgiraudo@univ-fcomte.fr>

Examples

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)

[Package pgirmess version 1.3.8 Index]