晚上好,親愛的同事們!
我沒有找到相同的主題。
因此,我將xlsx導入到jmp中,但是我的數值變成了標稱值。
如何避免這種情況?
你好@倫納德,
有幾種不同的方法可以做到這一點,但是我寫了一些JSL可以解決此問題。 我認為JMP 16應該在導入嚮導中具有允許覆蓋逗號的設置。
Names Default to Here(1);
//This replaces all commas by decimals
dt = Current Data Table();
Col_Names = dt << Get Column Names( Nominal, String );
Nr = N Rows( dt );
For( l = 1, l <= N Items( Col_Names ), l++,
One_col = Column( dt, Col_Names[l] );
For( k = 1, k <= Nr, k++,
One_col[k] = Substitute( One_Col[k], ",", "." )
);
);
//This part turns the "nominal" columns back to "numeric"
For( l = 1, l <= N Items( Col_Names ), l++,
Column( dt, Col_Names[l] ) << Data Type( Numeric ) << Modeling Type( Continuous ) << Format( Best, 12 )
);
您可以嘗試轉到文件>首選項> Windows專用,然後選中頂部的框:使用JMP...。 但是,實際上我沒有太多運氣來取代逗號。
但是,JSL代碼應該有所幫助。
希望這可以幫助!,
DS