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
data.table(V1 = factor(as.character(c(NA, 1:100, NA)), exclude = NULL)) # Error in as.character.factor(x) : malformed factor data.table(V1 = factor(as.character(c(NA, 1:3, NA)), exclude = NULL)) # V1 # 1: <NA> # 2: 1 # 3: 2 # 4: 3 # 5: <NA>
Is this the expected behaviour?
Another example here: https://stackoverflow.com/q/58103098/4552295
I'm getting this result with data.table_1.12.2 and R version 3.6.1.
data.table_1.12.2
R version 3.6.1
The text was updated successfully, but these errors were encountered:
Same in devel. Thanks for reporting. Happens when printing DT having > 100 rows because of head&tail print format.
root cause of the issue is rbindlist in this line
rbindlist
data.table/R/print.data.table.R
Line 61 in 5ab1884
x = data.table(V1 = factor(as.character(c(NA, 1:3, NA)), exclude = NULL)) rbindlist(list(x), use.names=FALSE)$V1 #Error in as.character.factor(x) : malformed factor
Sorry, something went wrong.
rbindlist malformed NA factor level, #3915
2be417d
mattdowle
Successfully merging a pull request may close this issue.
Is this the expected behaviour?
Another example here: https://stackoverflow.com/q/58103098/4552295
I'm getting this result with
data.table_1.12.2
andR version 3.6.1
.The text was updated successfully, but these errors were encountered: