Learn R Programming

supernova (version 2.5.1)

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.