Re: [R] working with tables -- was Re: Mode (statistics) in R?

2009-01-27 Thread Charles C. Berry
Carl, If I understand your drift below, I think this might be what you are after Reduce( c , rev(split(tbag, tbag ) ) , accumulate =TRUE ) or maybe just Reduce( c , rev(split(tbag, tbag ) ) ) which is the same as sort( tbag, decreasing = TRUE ) for many purposes.

[R] working with tables -- was Re: Mode (statistics) in R?

2009-01-26 Thread Carl Witthoft
Ok, so I'm slowly figuring out what a factor is, and was able to follow the related thread about finding a mode by using constructs like my_mode = as.numeric(names(table(x))[which.max(table(x))]) Now, suppose I want to keep looking for other modes? For example, Rgames