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

Matthew Dowle mdowle at mdowle.plus.com
Tue Nov 15 21:23:11 CET 2011


Is that with 1.7.3 on R-Forge? If so I think I know.

> 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?
> _______________________________________________
> datatable-help mailing list
> datatable-help at lists.r-forge.r-project.org
> https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/datatable-help




More information about the datatable-help mailing list