[R] using "table" in R

hadley wickham h.wickham at gmail.com
Sun Sep 17 15:10:32 CEST 2006

> This is the way to get the frequencies. But what I
> want is to store the elements in one vector and their
> frequencies in another vector. My problem is that when
> I call "table" to return the frequency table, I do not
> know how to extract these two vectors. I tried
> table(...)$dinnames and it did not work. It returned

> as.data.frame(table(1:10))


More information about the R-help mailing list