rename.: Rename variables by name

View source: R/rename.R

rename.R Documentation

Rename variables by name

Description

Rename variables from a data.table.

Usage

rename.(.df, ...)

Arguments

.df

A data.frame or data.table

...

new_name = old_name pairs to rename columns

Examples

df <- data.table(x = 1:3, y = 4:6)

df %>%
  rename(new_x = x,
         new_y = y)

tidytable documentation built on Sept. 23, 2022, 5:10 p.m.