<?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: Select a range of rows with variables in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Select-a-range-of-rows-with-variables/m-p/16872#M15383</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you, so simple!&amp;nbsp;&amp;nbsp; Thank you for helping me with more JSL syntax!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 12 Feb 2016 14:50:48 GMT</pubDate>
    <dc:creator>natalie_</dc:creator>
    <dc:date>2016-02-12T14:50:48Z</dc:date>
    <item>
      <title>Select a range of rows with variables</title>
      <link>https://community.jmp.com/t5/Discussions/Select-a-range-of-rows-with-variables/m-p/16870#M15381</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it possible to select a range of rows with variables?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is what I have, but it found the maximum over the entire range:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; vlower = lowerVoltage &amp;lt;&amp;lt; get; &lt;/P&gt;&lt;P&gt;&amp;nbsp; vupper = upperVoltage &amp;lt;&amp;lt; get; &lt;/P&gt;&lt;P&gt;&amp;nbsp; row1 = (vlower/10)+1;&lt;/P&gt;&lt;P&gt;&amp;nbsp; row2=(vupper/10)+1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: black;"&gt;select_rows &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: navy;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: black;"&gt; row1&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: navy;"&gt;::&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: black;"&gt;row2&lt;STRONG&gt;(&lt;/STRONG&gt;dt2&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: navy;"&gt;;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: black;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: black;"&gt;select_values &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: navy;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: black;"&gt; dt2&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: navy;"&gt;:&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: black;"&gt;Idoff&lt;STRONG&gt;(&lt;/STRONG&gt;select_rows&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: navy;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: black;"&gt;id &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: navy;"&gt;=&lt;/SPAN&gt; &lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: #0000dd;"&gt;maximum&lt;/SPAN&gt;&lt;STRONG style="color: black; font-size: 10.0pt; font-family: Consolas;"&gt;(&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: black;"&gt;select_values&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: navy;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: navy;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: navy;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Feb 2016 22:15:04 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Select-a-range-of-rows-with-variables/m-p/16870#M15381</guid>
      <dc:creator>natalie_</dc:creator>
      <dc:date>2016-02-11T22:15:04Z</dc:date>
    </item>
    <item>
      <title>Re: Select a range of rows with variables</title>
      <link>https://community.jmp.com/t5/Discussions/Select-a-range-of-rows-with-variables/m-p/16871#M15382</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Natalie,&lt;/P&gt;&lt;P&gt;If I understand what you are asking for, I believe the jsl you want would be:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;vlower = lowerVoltage &amp;lt;&amp;lt; get; &lt;/P&gt;&lt;P&gt;&amp;nbsp; vupper = upperVoltage &amp;lt;&amp;lt; get; &lt;/P&gt;&lt;P&gt;&amp;nbsp; row1 = (vlower/10)+1;&lt;/P&gt;&lt;P&gt;&amp;nbsp; row2=(vupper/10)+1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select_rows = row1:row2;&lt;/P&gt;&lt;P&gt;id = maximum(dt2:Idoff[select_rows]);&lt;/P&gt;&lt;P&gt;dt&amp;lt;&amp;lt;select rows(select_rows);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Feb 2016 04:22:26 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Select-a-range-of-rows-with-variables/m-p/16871#M15382</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2016-02-12T04:22:26Z</dc:date>
    </item>
    <item>
      <title>Re: Select a range of rows with variables</title>
      <link>https://community.jmp.com/t5/Discussions/Select-a-range-of-rows-with-variables/m-p/16872#M15383</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you, so simple!&amp;nbsp;&amp;nbsp; Thank you for helping me with more JSL syntax!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Feb 2016 14:50:48 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Select-a-range-of-rows-with-variables/m-p/16872#M15383</guid>
      <dc:creator>natalie_</dc:creator>
      <dc:date>2016-02-12T14:50:48Z</dc:date>
    </item>
  </channel>
</rss>

