Learn R Programming

scsR (version 1.8.0)

renameColDf: renameColDf

Description

rename the column of a data frame

Usage

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

Examples

Run this code
	data(uuk_screen)
	screen <- renameColDf(uuk_screen, "score", "my_z_score")

Run the code above in your browser using DataLab