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


mosaicCalc documentation built on Sept. 11, 2024, 9:10 p.m.