View source: R/namedMapBuilder.R
named_map_builder | R Documentation |
Set names of right-argument to be left-argument, and return right argument.
Called from :=
operator.
named_map_builder(targets, values)
`:=`(targets, values)
targets %:=% values
targets |
names to set. |
values |
values to assign to names (and return). |
values with names set.
lambda
, defineLambda
, makeFunction_se
c('a' := '4', 'b' := '5')
# equivalent to: c(a = '4', b = '5')
c('a', 'b') := c('1', '2')
# equivalent to: c(a = '1', b = '2')
# the important example
name <- 'a'
name := '5'
# equivalent to: c('a' = '5')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.