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?
to your account
Setting a column of a data table inside a listcolumn of a data tabke fails if the outer data.table has only one row:
inner = data.table(a = 1:3, b = 1:3)
outer = data.table(aa = 1, ab = list(inner))
outer$ab[]$b = 3L
In `[<-.data.table`(x, j = name, value = value) :
Supplied 2 items to be assigned to 1 items of column 'ab' (1 unused)
 1 2 3
However the following works as expected:
outer$ab[][, b := 3L]
1: 1 3
2: 2 3
3: 3 3
Note that this bug only seems to occur if the outer data.table has just one row.
The text was updated successfully, but these errors were encountered:
Thanks for reporting, note that behaviour of your code slightly changed in current development version, but issue is still valid. If you are not reporting on recent devel it is always useful to include sessionInfo() output.
Sorry, something went wrong.
Successfully merging a pull request may close this issue.