Description Usage Arguments Examples
Convert an object to a lazy expression or lazy dots.
1 2 3 | as.lazy(x, env = baseenv())
as.lazy_dots(x, env)
|
x |
An R object. Current methods for |
env |
Environment to use for objects that don't already have associated environment. |
1 2 3 4 5 6 7 8 9 10 | as.lazy(~ x + 1)
as.lazy(quote(x + 1), globalenv())
as.lazy("x + 1", globalenv())
as.lazy_dots(list(~x, y = ~z + 1))
as.lazy_dots(c("a", "b", "c"), globalenv())
as.lazy_dots(~x)
as.lazy_dots(quote(x), globalenv())
as.lazy_dots(quote(f()), globalenv())
as.lazy_dots(lazy(x))
|
<lazy>
expr: x + 1
env: <environment: R_GlobalEnv>
<lazy>
expr: x + 1
env: <environment: R_GlobalEnv>
<lazy>
expr: x + 1
env: <environment: R_GlobalEnv>
[[1]]
<lazy>
expr: x
env: <environment: R_GlobalEnv>
$y
<lazy>
expr: z + 1
env: <environment: R_GlobalEnv>
attr(,"class")
[1] "lazy_dots"
[[1]]
<lazy>
expr: a
env: <environment: R_GlobalEnv>
[[2]]
<lazy>
expr: b
env: <environment: R_GlobalEnv>
[[3]]
<lazy>
expr: c
env: <environment: R_GlobalEnv>
attr(,"class")
[1] "lazy_dots"
[[1]]
<lazy>
expr: x
env: <environment: R_GlobalEnv>
attr(,"class")
[1] "lazy_dots"
[[1]]
<lazy>
expr: x
env: <environment: R_GlobalEnv>
attr(,"class")
[1] "lazy_dots"
[[1]]
<lazy>
expr: f()
env: <environment: R_GlobalEnv>
attr(,"class")
[1] "lazy_dots"
[[1]]
<lazy>
expr: x
env: <environment: R_GlobalEnv>
attr(,"class")
[1] "lazy_dots"
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.