safe_set_names: Safe set names

Description Usage Arguments Value

View source: R/transform.R

Description

Will error if there is a problem setting names, which is better than silently returning NA Original Author: Mark Edmondson https://github.com/MarkEdmondson1234

Usage

1
safe_set_names(data_frame, lookup_names)

Arguments

data_frame

Data.frame to change the names of

lookup_names

A named vector of the names of old_name = new_name

Value

A character vector of new names, or error if any NA's


justinjm/googleAnalyticsRETL documentation built on April 23, 2020, 4:16 p.m.