定位功能大家好,
在資料表中,我有兩列:數字和程式碼
我使用“Loc”函數在資料表中搜尋索引。
Names default to here(1);
dt = current data table();
VALEUR = Loc( dt[Row(), "Numéro"], 1);
// VALEUR1 = Loc( dt[Row(), "Numéro"], 1) & Loc( dt[Row(), "Code"], "A") ;
我們如何應用具有雙重條件的“Loc”函數(我嘗試使用“AND”)。
感謝你的回覆。
自動化和腳本編寫回覆:Loc 函數我建議使用“獲取行位置”
Names default to here(1);
dt = current data table();
VALEUR = dt << get rows where( :Numéro == 1 & :Code == "A" );
回覆:Loc 函數如果你有 JMP18,你可以使用 newWhere ()
And if you have JMP18, new Where()
Names Default To Here(1);
dt = Open("$SAMPLE_DATA/Big Class.jmp");
rs = Where(dt, :sex == "F" & :age == 12);