Learn R Programming

wrapr (version 1.9.6)

as_fn: Convert a pipeable object into a function.

Description

Convert a pipeable object into a function of "."

Usage

as_fn(pipeable, env = parent.frame())

Arguments

pipeable

a wrapr dot-pipe pipeable object

env

envirnonment to work in.

Value

single function with signature (., env = parent.frame())

Details

Note: writes "." into env.

Examples

Run this code
# NOT RUN {
p <- pkgfn("base::sin", "x")
f <- as_fn(p)
f(5)


# }

Run the code above in your browser using DataLab