Dear list,
I have a contingency table :
a <- letters[1:3]
t <- table(a)
I'm looking for a way to transform this table into data frame, as follows :
Freq
a 1
b 1
c 1
I used :
df <- as.data.frame(t, row.names = names(t))
But, this function do not remove the duplicated column. Do you know the
solution ?
Thanks in advance,
Carlos
[[alternative HTML version deleted]]
______________________________________________
[email protected] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.