changeObjectName_: changeObjectName_()

Description Usage Arguments Examples

Description

Change the name of an object. Uses standard evaluation (SE) to capture to change the name of an object given character vectors for the current name of an object and the desired name.

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.