Displaying 1 result from an estimated 1 matches for "calinms".
Did you mean:
calin
2009 Dec 09
1
Significant performance difference between split of a data.frame and split of vectors
I have the following code, which tests the split on a data.frame and
the split on each column (as vector) separately. The runtimes are of
10 time difference. When m and k increase, the difference become even
bigger.
I'm wondering why the performance on data.frame is so bad. Is it a bug
in R? Can it be improved?
> system.time(split(as.data.frame(x),f))
user system elapsed
1.700