simplify_fun {mosaicCalc}R Documentation

Turn a 1-line function into an inline formula

Description

Turn a 1-line function into an inline formula

Usage

simplify_fun(fun)

inline_expr(ex, old, new, env)

replace_arg_in_expr(ex, old, new)

Arguments

fun

a function, such as produced by makeFun().

ex

an expression

old

the name to be replaced as produced by as.name()

new

the name to be substituted in for arg_name

env

the environment for the expression


[Package mosaicCalc version 0.6.4 Index]