mapsyms: Map symbol names to referenced values if those values are...

View source: R/mapvars.R

mapsymsR Documentation

Map symbol names to referenced values if those values are string scalars (else throw).

Description

Map symbol names to referenced values if those values are string scalars (else throw).

Usage

mapsyms(...)

Arguments

...

symbol names mapping to string scalars

Value

map from original symbol names to new names (names found in the current environment)

See Also

let

Examples


x <- 'a'
y <- 'b'
print(mapsyms(x, y))
d <- data.frame(a = 1, b = 2)
let(mapsyms(x, y), d$x + d$y)


wrapr documentation built on Aug. 20, 2023, 1:08 a.m.