Learn R Programming

genvar (version 0.0.2.0)

rename: renames variables in the dataset

Description

renames variables in the dataset

Usage

rename(var, newvar)

Arguments

var

the name of the variable to rename

newvar

the new name of the variable

Value

returns NULL, invisibly

Examples

Run this code
# NOT RUN {
use(cars, clear=TRUE)
listif()
rename("speed","velocity")
listif()
# }

Run the code above in your browser using DataLab