<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Average the first 100 rows and the last 100 rows of a JMP column. in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Average-the-first-100-rows-and-the-last-100-rows-of-a-JMP-column/m-p/935057#M109076</link>
    <description>&lt;P&gt;Here is one way of handling the issue&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;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() &amp;lt;= 100, Column( column_name ), . ) ) + Col Mean(
	If( Row() &amp;gt;= 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() &amp;lt;= 100 | Row() &amp;gt;= N Rows() - 99, Column( column_name ), . ) );&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Thu, 12 Mar 2026 15:15:34 GMT</pubDate>
    <dc:creator>txnelson</dc:creator>
    <dc:date>2026-03-12T15:15:34Z</dc:date>
    <item>
      <title>Average the first 100 rows and the last 100 rows of a JMP column.</title>
      <link>https://community.jmp.com/t5/Discussions/Average-the-first-100-rows-and-the-last-100-rows-of-a-JMP-column/m-p/935043#M109075</link>
      <description>&lt;P&gt;I have a noisy curve where I need to take average of the extremes and compare to the minimum value.&amp;nbsp; Thought this would work but doesn't.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Col Mean( :Column_Name W[Index( 1, 100 )] )&amp;nbsp;+ &lt;SPAN&gt;Col Mean( :Column_Name[N Rows() - 99 :: N Rows()] )&lt;/SPAN&gt;&lt;CODE class="language-jsl"&gt;&amp;nbsp;/ 2&lt;/CODE&gt;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 12 Mar 2026 14:31:54 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Average-the-first-100-rows-and-the-last-100-rows-of-a-JMP-column/m-p/935043#M109075</guid>
      <dc:creator>SpannerHead</dc:creator>
      <dc:date>2026-03-12T14:31:54Z</dc:date>
    </item>
    <item>
      <title>Re: Average the first 100 rows and the last 100 rows of a JMP column.</title>
      <link>https://community.jmp.com/t5/Discussions/Average-the-first-100-rows-and-the-last-100-rows-of-a-JMP-column/m-p/935057#M109076</link>
      <description>&lt;P&gt;Here is one way of handling the issue&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;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() &amp;lt;= 100, Column( column_name ), . ) ) + Col Mean(
	If( Row() &amp;gt;= 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() &amp;lt;= 100 | Row() &amp;gt;= N Rows() - 99, Column( column_name ), . ) );&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 12 Mar 2026 15:15:34 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Average-the-first-100-rows-and-the-last-100-rows-of-a-JMP-column/m-p/935057#M109076</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2026-03-12T15:15:34Z</dc:date>
    </item>
    <item>
      <title>Re: Average the first 100 rows and the last 100 rows of a JMP column.</title>
      <link>https://community.jmp.com/t5/Discussions/Average-the-first-100-rows-and-the-last-100-rows-of-a-JMP-column/m-p/935059#M109077</link>
      <description>&lt;P&gt;Try this&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;(Mean( :Z[Index( 1, 100 )] ) + Mean( :Z[Index( N Rows() - 99, N Rows() )] )) / 2&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 12 Mar 2026 15:27:47 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Average-the-first-100-rows-and-the-last-100-rows-of-a-JMP-column/m-p/935059#M109077</guid>
      <dc:creator>MathStatChem</dc:creator>
      <dc:date>2026-03-12T15:27:47Z</dc:date>
    </item>
    <item>
      <title>Re: Average the first 100 rows and the last 100 rows of a JMP column.</title>
      <link>https://community.jmp.com/t5/Discussions/Average-the-first-100-rows-and-the-last-100-rows-of-a-JMP-column/m-p/935060#M109078</link>
      <description>&lt;P&gt;I used "Z" as the column name. &amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Mar 2026 15:28:15 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Average-the-first-100-rows-and-the-last-100-rows-of-a-JMP-column/m-p/935060#M109078</guid>
      <dc:creator>MathStatChem</dc:creator>
      <dc:date>2026-03-12T15:28:15Z</dc:date>
    </item>
  </channel>
</rss>

