ecr.rename: DataFrame Tools : Rename a column

Description Usage Arguments Value Note Author(s) Examples

Description

Rename a column of a data.frame

Usage

1
ecr.rename(df, colname, newname)

Arguments

df

- data.frame

colname

- STRING - the column/variable name

newname

- STRING - the new column/variable name

Value

A data.frame with the column renamed

Note

Memory consumption?

Author(s)

jp.decorps@epiconcept.fr

Examples

1
2
3
# == Dataframe is loaded with data()
data(iris);
iris <- ecr.rename(iris, 'Sepal.Length','SL');

Epiconcept-Paris/Epiconcepts documentation built on May 6, 2019, 3:49 p.m.