re_name: Rename

Description Usage Arguments Value Examples

View source: R/data_process_tools.R

Description

re_name is for renaming variables.

Usage

1
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

1
2
dt = re_name(dat = UCICreditCard, "default.payment.next.month" , "target")
names(dt['target'])

creditmodel documentation built on Jan. 7, 2022, 5:06 p.m.