Skip to content
Prev 299315 / 398506 Next

convert a table

I managed to leave out one key line:

Filename <- sample(LETTERS[1:5], 50, replace=TRUE)
PREDICT <- sample(1:7, 50, replace=TRUE)
tbl <- table(Filename, PREDICT)     # this one.

Then the rest follows.
----------------------------------------------
David