Skip to content
Prev 58377 / 398502 Next

make apply() return a list

On Tuesday 02 November 2004 15:29, Gabor Grothendieck wrote:
Yes, you are totally right!
Thank you for wotking this out. I was also thinking about simplicity when I 
compared the different suggestions. Finally I took Tonys suggestion although 
the code is a bit longer than the others in _your_ comparison. The reason was 
only partially the speed, but compared to ML and GG this code preserves the 
(col)names of the dataframe, which I need in the real "myFunction". 
Circumventing this small problem in ML's and GG's suggestions would make my 
code (a bit) longer than the code based on TP's suggestion.

Best wishes,
Arne