大家好,
我需要使用另一個舊列中的條目更新數據表中缺失的列條目。 使用 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) ;
);
);