[datatable-help] A special character in a string borks data.table

Chris Neff caneff at gmail.com
Tue Nov 15 20:55:36 CET 2011


I have a data.frame DF with a factor column "foo", it has X unique
levels. When I do
DT=data.table(DF)
key(DT) = "foo"

DT then has X-1 unique levels, and one repeated level. I then
continually get messages saying that repeated levels are no longer
allowed.

The level that goes missing looks like:

"blahblah�0123456789"


There is a special character that I don't know what it is in there I
hope it shows through in the email.
After setting key(DT) , there is a completely different level that is
duplicated, and the level above goes missing.


I'm not quite sure how to replicate this with data I can show. It
seems a weird bug.  Any thoughts?


More information about the datatable-help mailing list