Hi
Here's my data:
data.frame(
stringsAsFactors = FALSE,
check.names = FALSE,
...1 = c("Correct", "Incorrect", "Nomatch", "Share"),
99p
= c(106, 111, 43, 126),
98p
= c(80, 116, 37, 153),
97p
= c(74, 122, 22, 168)
)
I want to create a contingency table, but when I write:
dt <- as.table(as.matrix(data))
I get a weird looking table:
dt
...1 99p 98p 97p
A Correct 106 80 74
B Incorrect 111 116 122
C Nomatch 43 37 22
D Share 126 153 168
I don't want those letters there (A,B,C,D). I only want the categories alone.
Thank you!!