use names (data.frame) instead of setnames (data.table)