Thanks for your help, and sorry for mis-posting. JD
On Wed, Sep 25, 2013 at 3:18 AM, Matthew Dowle <mdo...@mdowle.plus.com> wrote: > Very sorry to hear this bit you. If you need a copy of names before > changing them by reference : > oldnames <- copy(names(DT)) > This will be documented and it's on the bug list to do so. copy is needed in > other circumstances too, see ?copy. > More details here : > http://stackoverflow.com/questions/18662715/colnames-being-dropped-in-data-table-in-r > http://stackoverflow.com/questions/15913417/why-does-data-table-update-namesdt-by-reference-even-if-i-assign-to-another-v ______________________________________________ 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.