Re: [R] summary for factors is not very informative

2011-02-15 Thread Thomas Lumley
It does print frequency stats, just not all of them. The reason it doesn't print all of them is that there could be thousands of them. If you want a table, use table() -thomas On Wed, Feb 16, 2011 at 11:31 AM, Sam Steingold wrote: > summary() for a factor prints: > >     ColName >  SNDK  :

[R] summary for factors is not very informative

2011-02-15 Thread Sam Steingold
summary() for a factor prints: ColName SNDK : 72 VXX : 36 MWW : 30 ACI : 28 FRO : 28 (Other):1801 it would have been much more useful if it additionally printed frequency stats as if by summary(aggregate(frame$ColName,by=list(frame$ColName),FUN=length)$x) -- Sam St