rename.variable: Rename a data frame column

rename.variableR Documentation

Rename a data frame column

Description

Rename a data frame column

Usage

rename.variable(df, old, new)

Arguments

df

data frame

old

old name

new

new name

Value

A data frame with the column named "old" renamed as "new"

Examples

data(iris)
str(iris)
iris <- rename.variable(iris, "Species", "especes")
str(iris)

juba/questionr documentation built on Feb. 4, 2023, 11:45 p.m.