changeObjectName: changeObjectName()

Description Usage Arguments Examples

Description

Change the name of an object. Uses non-standard evaluation (NSE) to capture the unevaluted expressions given for its arguments (this should become clear in the examples below.) See changeObjectName_ for a version of this function that doesn't use NSE.

Usage

1
changeObjectName(oldObj, newObj, overwriteExisting = TRUE)

Arguments

oldObj

the object that should have its name changed

newObj

the new name of the object

overwriteExisting

TRUE by default, should the function overwrite existing objects with the name newObj?

Examples

1
2
jake <- c(5, 6, 7)
changeObjectName(jake, john)

jakesherman/jakemisc documentation built on May 18, 2019, 9:08 a.m.