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

Description Usage Arguments Value See Also Examples

View source: R/mapvars.R

Description

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

Usage

1

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

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

WinVector/wrapr documentation built on Nov. 21, 2020, 8:31 p.m.