inline: Turn a 1-line function into an inline formula

simplify_funR 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


ProjectMOSAIC/mosaicCalc documentation built on March 17, 2024, 8:27 p.m.