lambda | R Documentation |
Mostly just a place-holder so lambda-symbol form has somewhere safe to hang its help entry.
lambda(..., env = parent.frame())
... |
formal parameters of function, unbound names, followed by function body (code/language). |
env |
environment to work in |
user defined function.
defineLambda
, makeFunction_se
, named_map_builder
#lambda-syntax: lambda(arg [, arg]*, body [, env=env])
# also works with lambda character as function name
# print(intToUtf8(0x03BB))
# example: square numbers
sapply(1:4, lambda(x, x^2))
# example more than one argument
f <- lambda(x, y, x+y)
f(2,4)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.