replaceColumnName: Replace column names in data.frame

Description Usage Arguments Value Author(s) Examples

View source: R/dfmat.R

Description

Replace column names in data.frame

Usage

1
replaceColumnName(data.frame, old.names, new.names)

Arguments

data.frame

A data.frame

old.names

Old column names to be replaced

new.names

New column names

Value

Data.frame with column names updated

Author(s)

Jitao David Zhang <jitao_david.zhang@roche.com>

Examples

1
2
3
clubs <- data.frame(Points=c(21,23,28,24), Name=c("BVB", "FCB", "HSV",
"FCK"), games=c(12,11,11,12))
replaceColumnName(clubs, c("Points", "games"), c("Punkte", "Spiele"))

ribiosUtils documentation built on March 13, 2020, 2:54 a.m.