Skip to content
Prev 167025 / 398502 Next

Casting lists to data.frames, analog to SAS

On Jan 14, 2009, at 3:56 PM, Matthew Pettis wrote:

            
When I use as.data.frame.table on a similarly constructed object I get:

 > as.data.frame.table(with(warpbreaks, by(breaks, list(wool,  
tension), sum)))
   Var1 Var2 Freq
1    A    L  401
2    B    L  254
3    A    M  216
4    B    M  259
5    A    H  221
6    B    H  169