On Sat, 16 Sep 2006 21:17:21 -0500,
Bingshan Li <[EMAIL PROTECTED]> wrote:

> Hi there, I have a dataframe whose elements are numbers or characters. I
> want to extract the frequencies of each elements in the dataframe. For
> example,

> d = as.data.frame(matrix(c(1, 2, 3, 3), 2,2))

Don't use a data frame; e.g.:

table(as.matrix(d))


-- 
Seb

______________________________________________
[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.

Reply via email to