powered by
Convert a contingency table (data frame) into a data.frame of factors
tabcont2categ(tab)
A data frame
A data.frame (contingency table)
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