-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
shift() in data.table v1.9.6 is slow for many groups #1534
Comments
That's not surprising. This'll go away when |
+1 for this performance enhancement.
|
@ben519 Fyi, for the special case of when your code looks like that, there's a shortcut:
|
Hi there!
For many different groups in
by
,shift
is much slower than manual shifting.See: http://stackoverflow.com/questions/35179911/shift-in-data-table-v1-9-6-is-slow-for-many-groups
and https://github.com/nachti/datatable_test/blob/master/leadtest.R for a detailed example.
Cheers,
Gerhard
The text was updated successfully, but these errors were encountered: