Learn R Programming

tidytable (version 0.8.0)

rename.: Rename variables by name

Description

Rename variables from a data.table.

Usage

rename.(.df, ...)

Arguments

.df

A data.frame or data.table

...

Rename expression like dplyr::rename()

Examples

Run this code
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