Re: [R] Significant performance difference between split of a data.frame and split of vectors

2009-12-09 Thread Peng Yu
On Tue, Dec 8, 2009 at 11:06 PM, David Winsemius dwinsem...@comcast.net wrote: On Dec 9, 2009, at 12:00 AM, Peng Yu wrote: On Tue, Dec 8, 2009 at 10:37 PM, David Winsemius dwinsem...@comcast.net wrote: On Dec 8, 2009, at 11:28 PM, Peng Yu wrote: I have the following code, which tests the

Re: [R] Significant performance difference between split of a data.frame and split of vectors

2009-12-09 Thread Charles C. Berry
On Wed, 9 Dec 2009, Peng Yu wrote: On Tue, Dec 8, 2009 at 11:06 PM, David Winsemius dwinsem...@comcast.net wrote: On Dec 9, 2009, at 12:00 AM, Peng Yu wrote: On Tue, Dec 8, 2009 at 10:37 PM, David Winsemius dwinsem...@comcast.net wrote: On Dec 8, 2009, at 11:28 PM, Peng Yu wrote: I have

Re: [R] Significant performance difference between split of a data.frame and split of vectors

2009-12-09 Thread Peng Yu
On Wed, Dec 9, 2009 at 11:20 AM, Charles C. Berry cbe...@tajo.ucsd.edu wrote: On Wed, 9 Dec 2009, Peng Yu wrote: On Tue, Dec 8, 2009 at 11:06 PM, David Winsemius dwinsem...@comcast.net wrote: On Dec 9, 2009, at 12:00 AM, Peng Yu wrote: On Tue, Dec 8, 2009 at 10:37 PM, David Winsemius

Re: [R] Significant performance difference between split of a data.frame and split of vectors

2009-12-09 Thread Peng Yu
On Tue, Dec 8, 2009 at 10:37 PM, David Winsemius dwinsem...@comcast.net wrote: On Dec 8, 2009, at 11:28 PM, Peng Yu wrote: 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

Re: [R] Significant performance difference between split of a data.frame and split of vectors

2009-12-09 Thread David Winsemius
On Dec 9, 2009, at 2:59 PM, Peng Yu wrote: On Tue, Dec 8, 2009 at 10:37 PM, David Winsemius dwinsem...@comcast.net wrote: On Dec 8, 2009, at 11:28 PM, Peng Yu wrote: I have the following code, which tests the split on a data.frame and the split on each column (as vector) separately. The

Re: [R] Significant performance difference between split of a data.frame and split of vectors

2009-12-09 Thread Charles C. Berry
On Wed, 9 Dec 2009, Peng Yu wrote: On Wed, Dec 9, 2009 at 11:20 AM, Charles C. Berry cbe...@tajo.ucsd.edu wrote: On Wed, 9 Dec 2009, Peng Yu wrote: On Tue, Dec 8, 2009 at 11:06 PM, David Winsemius dwinsem...@comcast.net wrote: On Dec 9, 2009, at 12:00 AM, Peng Yu wrote: On Tue, Dec 8,

[R] Significant performance difference between split of a data.frame and split of vectors

2009-12-08 Thread Peng Yu
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

Re: [R] Significant performance difference between split of a data.frame and split of vectors

2009-12-08 Thread David Winsemius
On Dec 8, 2009, at 11:28 PM, Peng Yu wrote: 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

Re: [R] Significant performance difference between split of a data.frame and split of vectors

2009-12-08 Thread Peng Yu
On Tue, Dec 8, 2009 at 10:37 PM, David Winsemius dwinsem...@comcast.net wrote: On Dec 8, 2009, at 11:28 PM, Peng Yu wrote: 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

Re: [R] Significant performance difference between split of a data.frame and split of vectors

2009-12-08 Thread David Winsemius
On Dec 9, 2009, at 12:00 AM, Peng Yu wrote: On Tue, Dec 8, 2009 at 10:37 PM, David Winsemius dwinsem...@comcast.net wrote: On Dec 8, 2009, at 11:28 PM, Peng Yu wrote: I have the following code, which tests the split on a data.frame and the split on each column (as vector) separately. The