計數 N大家好,
我對 JMP 還很陌生。 我想詢問有關我正在處理的數據的問題。 由於某種原因,我需要將日期列轉換為字元/名義(如附件)。 我需要繪製 X 和 Y,X 軸是我的日期列,而 Y 軸我有 2 個連續參數。 我的問題是如何建立一個腳本,如果日期計數大於/小於某個數字,我可以在其中過濾日期計數。 例如,在本例中,如果日期計數小於 6,那麼我將排除 20171108。 類似的事情。 我知道我還可以使用匯總統計 N 來使用圖形生成器來完成此操作,但我想使用 jsl 來完成此操作。
回覆:數N非常感謝,gzmorgan0。 有用!回覆:數N開啟來源資料表來嘗試此操作。
Names Default to Here(1);
dt = current data table();
dt << clear select();
dtsum = dt << Summary(Group(:date), N);
//by default the sumary table is linked to the source table
dtsum << select where(:N < 6);
close(dtsum,Nosave); //no longer needed, and the rows are selected in the source
dt << exclude(1);