Skip to content
Prev 228465 / 398500 Next

how to force a table to be square?

On Jul 22, 2010, at 4:00 PM, Liat wrote:

            
Just convert each character vector to a factor with the appropriate level set, as in

table(factor(myData[1,  ], levels=c("A","B","C")))