rename {tidytable} | R Documentation |
Rename variables by name
Description
Rename variables from a data.table.
Usage
rename(.df, ...)
Arguments
.df |
A data.frame or data.table |
... |
|
Examples
df <- data.table(x = 1:3, y = 4:6)
df %>%
rename(new_x = x,
new_y = y)
[Package tidytable version 0.11.1 Index]