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
> droplevels(data.table::data.table()) Error in droplevels.data.table(data.table::data.table()) : length(x) > 0L is not TRUE
It works for data.frame:
data.frame
> droplevels(data.frame()) data frame with 0 columns and 0 rows
Using current GitHub-Version 8f0afcb
> sessionInfo() R version 4.0.5 (2021-03-31) Platform: x86_64-redhat-linux-gnu (64-bit) Running under: Fedora 34 (Thirty Four) Matrix products: default BLAS/LAPACK: /usr/lib64/libflexiblas.so.3.0 locale: [1] LC_CTYPE=en_US.utf8 LC_NUMERIC=C [3] LC_TIME=en_US.utf8 LC_COLLATE=en_US.utf8 [5] LC_MONETARY=en_US.utf8 LC_MESSAGES=en_US.utf8 [7] LC_PAPER=en_US.utf8 LC_NAME=C [9] LC_ADDRESS=C LC_TELEPHONE=C [11] LC_MEASUREMENT=en_US.utf8 LC_IDENTIFICATION=C attached base packages: [1] stats graphics grDevices utils datasets methods base loaded via a namespace (and not attached): [1] compiler_4.0.5 data.table_1.14.3
The text was updated successfully, but these errors were encountered:
Ty for the report. The S3 method for data.table should ofc return the same result for this "edge case".
data.table
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
It works for
data.frame
:Using current GitHub-Version 8f0afcb
The text was updated successfully, but these errors were encountered: