大家好,
我需要使用另一个旧列中的条目更新数据表中缺失的列条目。 使用 JSL 代码,并在 JMP 14 上。
这是我正在尝试工作的代码,但它一直在抛出错误“试图分配给一个对象...... L值访问..”
任何帮助将不胜感激..
dt=current data table();
Newcols={ "anew", "bnew", "cnew"};
oldcols={ "a", "b", "c"};
//---Update entries from old cols if new column entry is missing
For( k = 1 , k <= Length( oldcols ), k++,
For Each Row(
temp = column(dt, Newcols[k]);
oldc = column(dt, oldcols[k]);
column (dt,Newcols[k]) = If( Is Missing( as column(dt,Newcols[k]) ) , oldc , temp) ;
);
);