嗨 - 有人可以告訴我如何使用 JMP 腳本在下面的摘要表中為不等於 1 的單元格著色,從 N 類別(流程分類級別 1)列開始? 此外,這些只是示例列,還有 40 個其他列,所以我不想在腳本中指定實際的列名。 最後,如果匯總表中的單元格被著色,該顏色是否可以應用於匯總錶鍊接到的原始數據表?

這是處理該問題的一種方法:

Names Default To Here( 1 );
// Open Data Table: big class.jmp
// → Data Table( "big class" )
dt = Open( "$SAMPLE_DATA/big class.jmp" );
dtSum = dt << Summary(
Group( :age ),
Mean( :height ),
Mean( :weight ),
Freq( "None" ),
Weight( "None" ),
statistics column name format( "column" )
);
// Get the column names of the current columns
sumColNames = dtSum << get column names(string);
// Remove the first 2 columns from the list
remove from( sumColNames, 1, 2 );
// loop across columns finding all cells > 63
For( i=1, i<= N Items( sumColNames ), i++,
// select all rows where cells are above 63
dtSum << select where( as column( dtSum, sumColNames[i]) > 63 );
// Color cells in summary table
as column(dtSum, sumColNames[i]) << Color Cells( red, dtSum << get selected rows );
// Color cells in original table
as column(dt, sumColNames[i]) << Color Cells( red, dt << get selected rows );
)
太感謝了! 有效。
作為後續問題,如果我想創建一個帶有 1 的指示符列來標記數據表中帶有突出顯示單元格的任何行,我該怎麼做?