search for: tbag

Displaying 1 result from an estimated 1 matches for "tbag".

Did you mean: tag
2009 Jan 27
2
working with tables -- was Re: Mode (statistics) in R?
...6 2 [37] 6 6 9 8 6 8 8 4 3 6 3 9 5 1 Rgames> names(which.max(table(bag))) [1] "3" I can then do Rgames> bag2<-bag[bag!=3] and repeat the which.max stuff. I came up with the following command to find the actual magnitude of the mode: Rgames> table(bag)->tbag Rgames> tbag bag 1 2 3 4 5 6 7 8 9 10 3 5 8 3 3 8 2 8 5 5 Rgames> tbag[dimnames(tbag)$bag=="3"]->bagmode Rgames> bagmode 3 8 Related to this, since bag2 is now bereft of threes, Rgames> table(bag2) bag2 1 2 4 5 6 7 8 9 10 3 5 3 3 8 2...