Here is one way of handling the issue
Names Default To Here( 1 );
dt =
// Open Data Table: Semiconductor Capability.jmp
// → Data Table( "Semiconductor Capability" )
Open( "$SAMPLE_DATA/Semiconductor Capability.jmp" );
column_name = "NPN1";
Col Mean( If( Row() <= 100, Column( column_name ), . ) ) + Col Mean(
If( Row() >= N Rows() - 99,
Column( column_name ),
.
)
) / 2;
// I think this is a better formula to calculate the mean of the extremes
Col Mean( If( Row() <= 100 | Row() >= N Rows() - 99, Column( column_name ), . ) );
Jim