IRIS <- as.data.table(iris)
setnames(IRIS, "Petal.Length", "Sepal.Length") # No warning (but maybe there should be?)
IRIS[, Sepal.Length] # Only first occurrence is returned
setnames(IRIS, "Sepal.Length", "abc.Length") # Warning: Only first occurrence is changed