Expands the contents of functions used in a formula.
Arguments
- formula
A mathematical expression (see examples and
plotFun())- ...
additional parameters
Examples
f=makeFun(x^2~x)
expandFun(f(z)~z) #Returns z^2~z
#> Error in eval(exp[[1]]): object 'f' not found