RenameColumns: Renames columns of a data frame.

Description Usage Arguments Value

View source: R/utils_general.R

Description

Renames columns of a data frame.

Usage

1
RenameColumns(x, map = character(0))

Arguments

x

a data frame.

map

a named character vector, mapping old column names to new ones such that the new ones are in 'names' and the values are the old ones. For example, c(geo='GMA', date='Week Ending'). If 'map' has length 0, the original data frame is returned.

Value

The data frame, with the column names renamed.


google/GeoexperimentsResearch documentation built on May 17, 2019, 7:42 a.m.