rename: Change the name of a data.frame column

Description Usage Arguments Value Examples

View source: R/basetools.R

Description

Change the name of a data.frame column

Usage

1
rename(oldname, newname)

Arguments

oldname

Name of the column/variable to rename

newname

New name to apply

Value

Message to confirm the change

Examples

1
2
df <- as.data.frame( c(One=1,Two=2) )
rename(Two,Last)

gdesve/epifield documentation built on Jan. 23, 2022, 10:03 a.m.