<?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: reading data from peak - y and x data in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/reading-data-from-peak-y-and-x-data/m-p/863354#M102739</link>
    <description>&lt;P&gt;Here is a simple script that will write the values to the log&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;names default to here(1);
dt = current data table();

theRow = (dt &amp;lt;&amp;lt; get rows where(col max(:signal)==:signal))[1];
show(:"time, min"n[theRow],:signal[theRow]);&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Mon, 31 Mar 2025 11:36:48 GMT</pubDate>
    <dc:creator>txnelson</dc:creator>
    <dc:date>2025-03-31T11:36:48Z</dc:date>
    <item>
      <title>reading data from peak - y and x data</title>
      <link>https://community.jmp.com/t5/Discussions/reading-data-from-peak-y-and-x-data/m-p/863205#M102738</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I am having JMP 18 and I am looking for a way to read the max peak - I´d like to have the max y and equivalent x value.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 31 Mar 2025 10:26:02 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/reading-data-from-peak-y-and-x-data/m-p/863205#M102738</guid>
      <dc:creator>katjes</dc:creator>
      <dc:date>2025-03-31T10:26:02Z</dc:date>
    </item>
    <item>
      <title>Re: reading data from peak - y and x data</title>
      <link>https://community.jmp.com/t5/Discussions/reading-data-from-peak-y-and-x-data/m-p/863354#M102739</link>
      <description>&lt;P&gt;Here is a simple script that will write the values to the log&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;names default to here(1);
dt = current data table();

theRow = (dt &amp;lt;&amp;lt; get rows where(col max(:signal)==:signal))[1];
show(:"time, min"n[theRow],:signal[theRow]);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 31 Mar 2025 11:36:48 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/reading-data-from-peak-y-and-x-data/m-p/863354#M102739</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2025-03-31T11:36:48Z</dc:date>
    </item>
    <item>
      <title>Re: reading data from peak - y and x data</title>
      <link>https://community.jmp.com/t5/Discussions/reading-data-from-peak-y-and-x-data/m-p/867810#M103058</link>
      <description>&lt;P&gt;hi, thanks for the great input.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is there away that it does the data picking for all IDs?&lt;/P&gt;</description>
      <pubDate>Fri, 11 Apr 2025 13:53:31 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/reading-data-from-peak-y-and-x-data/m-p/867810#M103058</guid>
      <dc:creator>katjes</dc:creator>
      <dc:date>2025-04-11T13:53:31Z</dc:date>
    </item>
    <item>
      <title>Re: reading data from peak - y and x data</title>
      <link>https://community.jmp.com/t5/Discussions/reading-data-from-peak-y-and-x-data/m-p/867821#M103059</link>
      <description>&lt;P&gt;It requires just a simple modification to the JSL I originally provided.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="txnelson_0-1744383092843.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/74769iEC2BD60A4B378E02/image-size/medium?v=v2&amp;amp;px=400" role="button" title="txnelson_0-1744383092843.png" alt="txnelson_0-1744383092843.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;names default to here(1);
dt = current data table();

// Find all of the peaks
theRows = (dt &amp;lt;&amp;lt; get rows where(col max(:signal, :ID)==:signal));

// Display results
New window("Peak Maximums",
	table box(
		string col box("ID", :ID[theRows]),
		number col box("time, min",:"time, min"n[theRows]),
		number col box("signal", :signal[theRows])
	)
);

// Select the rows in the data table
dt &amp;lt;&amp;lt; clear select;
dt &amp;lt;&amp;lt; select rows(theRows);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 11 Apr 2025 14:52:17 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/reading-data-from-peak-y-and-x-data/m-p/867821#M103059</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2025-04-11T14:52:17Z</dc:date>
    </item>
  </channel>
</rss>

