I found this behavior during a debugging session:
> d = data.table(a=1, b=2, c=3)
> setnames(d, "a", "b")
> d
b b c
1: 1 2 3
Shouldn’t setnames() check if the new column names already exist before
renaming, and signal an error or at least a warning if they do?
--
Alexandre Sieira
CISA, CISSP, ISO 27001 Lead Auditor
"The truth is rarely pure and never simple."
Oscar Wilde, The Importance of Being Earnest, 1895, Act I
_______________________________________________
datatable-help mailing list
[email protected]
https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/datatable-help