rename: Rename a column in a data frame

View source: R/utils.R

renameR Documentation

Rename a column in a data frame

Description

Rename a column in a data frame

Usage

rename(data, col_name, replacement)

Arguments

data

A data frame to modify.

col_name

A character vector of columns to rename.

replacement

A character vector of replacement column names.

Value

Returns the renamed data frame.


supernova documentation built on May 29, 2024, 4:47 a.m.