tabcont2categ: Convert a contingency table (data.frame) into a...

tabcont2categR 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

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)

pgirmess documentation built on May 29, 2024, 4:26 a.m.