renameColDf: renameColDf

Description Usage Arguments Value Author(s) Examples

View source: R/scsR_utils.R

Description

rename the column of a data frame

Usage

1
renameColDf(df, colOldName, colNewName)

Arguments

df

input data frame

colOldName

name of the column that has to be changed (character vector)

colNewName

new column name (character vector)

Value

input data frame with the name of the column changed

Author(s)

Andrea Franceschini

Examples

1
2
	data(uuk_screen)
	screen <- renameColDf(uuk_screen, "score", "my_z_score")

scsR documentation built on April 28, 2020, 7:11 p.m.