Learn R Programming

wrapr (version 1.9.6)

wrapfn: Wrap the source for an exprssion as a function.

Description

Wrap the source for an exprssion as a function.

Usage

wrapfn(fn, arg_name = ".", args = list())

Arguments

fn

function.

arg_name

characer, name of argument to assign.

args

named list of adittional arguments and values.

Value

PartialFunction

See Also

pkgfn, fnlist, srcfn

Examples

Run this code
# NOT RUN {
f <- wrapfn(sin, "x")
cat(format(f))
1:3 %.>% f

# }

Run the code above in your browser using DataLab