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
I would expect cbind(data.table(), dt) to equal dt, but the operation seems to give a broken result with an added column V1 and shifted column types. Note how Species becomes NULL and Petal.Width ends up being a "Factor w/ 3 levels".
Factor w/ 3 levels
> dt <- as.data.table(iris)
> str(cbind(data.table(), dt))
Classes ‘data.table’ and 'data.frame': 0 obs. of 6 variables:
$ V1 : num
$ Sepal.Length: num
$ Sepal.Width : num
$ Petal.Length: num
$ Petal.Width : Factor w/ 3 levels "setosa","versicolor",..:
$ Species : NULL
- attr(*, ".internal.selfref")=<externalptr>
The text was updated successfully, but these errors were encountered:
cbind on null.dt to non-null.dt now works, closes #3445
cbind on null.dt to non-null.dt now works, closes #3445 (#3446)
Successfully merging a pull request may close this issue.