回复:如何设置列组的格式(即不是单独的)?你好@尼奥,
选择多列时,可以在它们上面右击,选择“标准化属性”(跨列标准化属性和属性 (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 )
高级统计建模自动化和脚本编写数据混合和清理大规模定制