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

splitMulti / splitLexisDT: breaks not used correctly when re-splitting #111

Open
WetRobot opened this issue Jun 18, 2016 · 0 comments
Open
Assignees
Milestone

Comments

@WetRobot
Copy link
Collaborator

> xx <- splitMulti(x, breaks = list(fot = seq(0, 5, 1/12)))
> attr(xx, "breaks")
$fot
 [1]  0.00000000  0.08333333  0.16666667  0.25000000  0.33333333  0.41666667  0.50000000  0.58333333  0.66666667  0.75000000  0.83333333  0.91666667  1.00000000
[14]  1.08333333  1.16666667  1.25000000  1.33333333  1.41666667  1.50000000  1.58333333  1.66666667  1.75000000  1.83333333  1.91666667  2.00000000  2.08333333
[27]  2.16666667  2.25000000  2.33333333  2.41666667  2.50000000  2.58333333  2.66666667  2.75000000  2.83333333  2.91666667  3.00000000  3.08333333  3.16666667
[40]  3.25000000  3.33333333  3.41666667  3.50000000  3.58333333  3.66666667  3.75000000  3.83333333  3.91666667  4.00000000  4.08333333  4.16666667  4.25000000
[53]  4.33333333  4.41666667  4.50000000  4.58333333  4.66666667  4.75000000  4.83333333  4.91666667  5.00000000  6.00000000  7.00000000  8.00000000  9.00000000
[66] 10.00000000

> nrow(xx)
[1] 301804
> xxx <- splitMulti(xx, breaks = list(fot = seq(0, 5, 1/12)))
> attr(xxx, "breaks")
$fot
 [1] 0.00000000 0.08333333 0.16666667 0.25000000 0.33333333 0.41666667 0.50000000 0.58333333 0.66666667 0.75000000 0.83333333 0.91666667 1.00000000 1.08333333
[15] 1.16666667 1.25000000 1.33333333 1.41666667 1.50000000 1.58333333 1.66666667 1.75000000 1.83333333 1.91666667 2.00000000 2.08333333 2.16666667 2.25000000
[29] 2.33333333 2.41666667 2.50000000 2.58333333 2.66666667 2.75000000 2.83333333 2.91666667 3.00000000 3.08333333 3.16666667 3.25000000 3.33333333 3.41666667
[43] 3.50000000 3.58333333 3.66666667 3.75000000 3.83333333 3.91666667 4.00000000 4.08333333 4.16666667 4.25000000 4.33333333 4.41666667 4.50000000 4.58333333
[57] 4.66666667 4.75000000 4.83333333 4.91666667 5.00000000

> nrow(xxx)
[1] 290480
> xxxx <- splitMulti(xxx, breaks = list(fot = seq(0, 5, 1/12)))
> attr(xxxx, "breaks")
$fot
 [1] 0.00000000 0.08333333 0.16666667 0.25000000 0.33333333 0.41666667 0.50000000 0.58333333 0.66666667 0.75000000 0.83333333 0.91666667 1.00000000 1.08333333
[15] 1.16666667 1.25000000 1.33333333 1.41666667 1.50000000 1.58333333 1.66666667 1.75000000 1.83333333 1.91666667 2.00000000 2.08333333 2.16666667 2.25000000
[29] 2.33333333 2.41666667 2.50000000 2.58333333 2.66666667 2.75000000 2.83333333 2.91666667 3.00000000 3.08333333 3.16666667 3.25000000 3.33333333 3.41666667
[43] 3.50000000 3.58333333 3.66666667 3.75000000 3.83333333 3.91666667 4.00000000 4.08333333 4.16666667 4.25000000 4.33333333 4.41666667 4.50000000 4.58333333
[57] 4.66666667 4.75000000 4.83333333 4.91666667 5.00000000

> nrow(xxxx)
[1] 290480
@WetRobot WetRobot added this to the V. 0.4.0 milestone Jun 18, 2016
@WetRobot WetRobot self-assigned this Jun 18, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant