Learn R Programming

supernova (version 3.0.0)

rename: Rename a column in a data frame

Description

Rename a column in a data frame

Usage

rename(data, col_name, replacement)

Value

Returns the renamed data frame.

Arguments

data

A data frame to modify.

col_name

A character vector of columns to rename.

replacement

A character vector of replacement column names.