<?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 first/second half of rows to form a subset in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Select-first-second-half-of-rows-to-form-a-subset/m-p/230663#M45742</link>
    <description>&lt;P&gt;You can use the following JSL&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt=current data table();
dt&amp;lt;&amp;lt;select where(Row()&amp;lt;=N Rows(dt)/2);

dt2=dt&amp;lt;&amp;lt;subset(selected rows(1), selected columns(0));&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Thu, 24 Oct 2019 18:35:32 GMT</pubDate>
    <dc:creator>txnelson</dc:creator>
    <dc:date>2019-10-24T18:35:32Z</dc:date>
    <item>
      <title>Select first/second half of rows to form a subset</title>
      <link>https://community.jmp.com/t5/Discussions/Select-first-second-half-of-rows-to-form-a-subset/m-p/230647#M45739</link>
      <description>&lt;P&gt;I have a question about how to select first half or second of rows to form a subset. I don't want to manually type in 1,2,3,4,5,...,10 (if there are 20 rows) because my rows could be different from time to time. I have a equation that define number of rows that will appear in the original table. Is there anything like select row (1:10) or others that make it easier?&lt;/P&gt;</description>
      <pubDate>Thu, 24 Oct 2019 17:32:58 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Select-first-second-half-of-rows-to-form-a-subset/m-p/230647#M45739</guid>
      <dc:creator>aaronjiang</dc:creator>
      <dc:date>2019-10-24T17:32:58Z</dc:date>
    </item>
    <item>
      <title>Re: Select first/second half of rows to form a subset</title>
      <link>https://community.jmp.com/t5/Discussions/Select-first-second-half-of-rows-to-form-a-subset/m-p/230663#M45742</link>
      <description>&lt;P&gt;You can use the following JSL&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt=current data table();
dt&amp;lt;&amp;lt;select where(Row()&amp;lt;=N Rows(dt)/2);

dt2=dt&amp;lt;&amp;lt;subset(selected rows(1), selected columns(0));&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 24 Oct 2019 18:35:32 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Select-first-second-half-of-rows-to-form-a-subset/m-p/230663#M45742</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2019-10-24T18:35:32Z</dc:date>
    </item>
  </channel>
</rss>

