回复:如何設置列組的格式(即不是單獨的)?你好@尼奧,
選擇多列時,可以在它們上面右擊,選擇“標準化屬性”(跨列標準化屬性和屬性 (jmp.com) ):

查看腳本日誌,然後您可以提取此屬性標準化的代碼。 這裡的例子是:
// Standardize column attributes
Local( {old dt = Current Data Table()},
Current Data Table( Data Table( "Test" ) );
For Each( {col, index}, {:Column 1, :Column 2, :Column 3},
col << Data Type( Numeric, Format( "Fixed Dec", 12, 2 ) ) << Set Modeling Type( "Continuous" )
);
Current Data Table( old dt );
);
希望這個回答能幫到你
回复:如何設置列組的格式(即不是單獨的)?@維克多_G
謝謝。 我試圖避免
{:Column 1, :Column 2, :Column 3}因為這些預計會根據具體情況而改變。 我可以選擇相關的(數字)列作為
ListofNumericCols = dt << get column names(numeric, Continuous);
NumericCols = dt << Group Columns ("NumericCols",ListofNumericCols);
dt<< Select Columns (dt<<GET column="" group=""></GET>然後我想立即更改組“NumericCols”的格式。 如何/我們可以在 JSL 中做到這一點?
回复:如何設置列組的格式(即不是單獨的)?以下為我完成了工作。 謝謝。
Names Default To Here( 1 ); <BR />dt = Open ("myDataTable.jmp"); /*load data table*/<BR />ListofNumericCols = dt << get column names(numeric, Continuous); //get list of columns to group
NumericCols = dt << Group Columns ("NumericCols",ListofNumericCols); // group columns
dt<< Select Columns (dt<<GET column="" group=""></GET>Local( {old dt = Current Data Table()},
Current Data Table( Data Table( "myDataTable" ) );
For Each( {col, index},
selecedColNames,
col << Format( "Fixed Dec", 12, 2 )
);
Current Data Table( old dt );
);
回复:如何設置列組的格式(即不是單獨的)?您不需要先選擇組中的列,然後獲取它們的引用。
Names Default To Here( 1 );
// example
dt = Open( "$SAMPLE_DATA/Cities.jmp" );
// create column groups
dt << group columns( "xy", {:X, :y} );
dt << group columns( "pollutants", :Ozone :: :Lead );
// get col references to each member in group
col = dt << get column group( "xy" );
// iterate over list and make change to attribute or proptery
For( c = 1, c <= N Items( col ), c++,
col[c] << Format( "Fixed Dec", 6, 2 );
);如何設置列組的格式(即不是單獨設置)?我有一個列組,我想更改其格式。 我知道如何對給定的列執行此操作,如下所示
Names Default To Here (1);
dt = Open ("myTable.jmp");
//Show( dt:myCol << get format );
dt:myCol<< Format( "Fixed Dec", 10, 2 );
//Show( dt:myCol<< get format );如何在 JSL 中對列組執行此操作?
(我想我需要這個的 JSL 變體https://community.jmp.com/t5/Discussions/how-to-multiple-column-format-at-once/td-p/238726 )
高級統計建模自動化和腳本編寫數據混合和清理大規模定制