We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
dcast.data.table( drop = FALSE) does not add columns for missing levels in a factor variable
library(data.table) library(reshape2) df <- data.table( x = factor("a", levels = c("a", "b")), y = factor("b", levels = c("a", "b")), z = 1 ) dcast(df, y~x, drop = FALSE) dcast.data.table(df, y~x, drop = FALSE)
The text was updated successfully, but these errors were encountered:
Closes #893. dcast handles factor levels correctly on drop=FALSE.
4fe7314
Fixed in 4fe7314. Will close after adding README.
Sorry, something went wrong.
Moved to 1.9.6.
a14cef5
arunsrinivasan
No branches or pull requests
dcast.data.table( drop = FALSE) does not add columns for missing levels in a factor variable
The text was updated successfully, but these errors were encountered: