powered by
Rename variables from a data.table.
rename.(.df, ...)
A data.frame or data.table
new_name = old_name pairs to rename columns
new_name = old_name
df <- data.table(x = 1:3, y = 4:6) df %>% rename(new_x = x, new_y = y)
Run the code above in your browser using DataLab