Learn R Programming

creditmodel (version 1.3.1)

re_name: Rename

Description

re_name is for renaming variables.

Usage

re_name(dat, oldname = c(), newname = c())

Arguments

dat

A data frame with vairables to rename.

oldname

Old names of vairables.

newname

New names of vairables.

Value

data with new variable names.

Examples

Run this code
# NOT RUN {
dt = re_name(dat = UCICreditCard, "default.payment.next.month" , "target")
names(dt['target'])
# }

Run the code above in your browser using DataLab