你好,
我需要通过脚本使用列名称和常量的变量创建一个新的公式列。
尝试了 Expr、Eval、Parse、Eval Insert 的各种组合均无济于事。
参见样本。
谢谢
row = 11;
col = "foo";
for (i = 1, i <= ncols(dt), i++,
dt << New Column( "ratio " || char(i), numeric,
formula(( column(col) - column(col)[row] ) / (Col Max(col) - Col Min(col))));
);