mapsyms | R Documentation |
Map symbol names to referenced values if those values are string scalars (else throw).
mapsyms(...)
... |
symbol names mapping to string scalars |
map from original symbol names to new names (names found in the current environment)
let
x <- 'a'
y <- 'b'
print(mapsyms(x, y))
d <- data.frame(a = 1, b = 2)
let(mapsyms(x, y), d$x + d$y)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.