Hi Sean, Try : key(test.dt) = c("a","b")
Btw, the posting guide asks you to contact the maintainer of the package before r-help. Otherwise r-help would fill up with posts about 2000+ packages (I guess is the reason). In this case maintainer("data.table") returns "datatable-h...@lists.r-forge.r-project.org" (cc'd) where you will be very welcome. Matthew ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.