I am using a by() function in R to run A FUN() on all subsets of a factor. The FUN() returns two numbers as its returning values. The by() function returns a "by" class like this:
---------------------------------------------------------------------------------------
: 98012
[1] 25.00 0.84
---------------------------------------------------------------------------------------
: 98301
[1] 5.0 0.6
---------------------------------------------------------------------------------------
I'd like to convert this "by" class into an ordinary data.frame so that I can use two returned numbers separately. However, such "by" class cannot be converted into a data.frame. Any ideas?