Skip to content
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

rolling joins with roll=TRUE and value -Inf #1007

Closed
arunsrinivasan opened this issue Jan 14, 2015 · 0 comments
Closed

rolling joins with roll=TRUE and value -Inf #1007

arunsrinivasan opened this issue Jan 14, 2015 · 0 comments
Assignees
Labels
Milestone

Comments

@arunsrinivasan
Copy link
Member

Discovered due to #1006.

require(data.table) ## 1.9.5
DT = data.table(x=c(-Inf, 3), y=1:2, key="x")
#       x y
#1: -Inf 1
#2:    3 2

# wrong result.. should be 2,1
DT[J(2), roll=TRUE]
#    x  y
#1: 2 NA
@arunsrinivasan arunsrinivasan changed the title rolling joins with rollends=TRUE and -Inf rolling joins with roll=TRUE and value -Inf Jan 15, 2015
@arunsrinivasan arunsrinivasan added this to the v1.9.6 milestone Jan 15, 2015
@arunsrinivasan arunsrinivasan self-assigned this Jan 15, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant