I’m passing variables to put into formula in Julia from R. The way I construct formula is such:
effects = Symbol.(["asd","sdf","dfg"]) effects = :(+$(effects...)) dep_var = Symbol("depend_var") julia> fm = @eval @formula($(dep_var) ~ $(effects)) Formula: depend_var ~ asd + sdf + dfg
The question is, how can I use
zerocorr() with such variables?
If I’m passing it like this -
@eval @formula($(var1) ~ zerocorr($(var2))), it does not create a right formula, zerocorr() is not interpreted as a call but is passed literally from what I understand.