<?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 Sequentially exclude rows? in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Sequentially-exclude-rows/m-p/365879#M61538</link>
    <description>&lt;P&gt;Hi. &amp;nbsp;Is there a command to exclude rows that doesn't also unexclude previously excluded rows? &amp;nbsp;In my script, I'd like to exclude rows in a table that already may have some of these rows excluded. &amp;nbsp;The problem is that if I use Exclude, it may actually Unexclude previously excluded rows. &amp;nbsp;For example:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);
dt = Open("$SAMPLE_DATA/Big Class.jmp");
dt &amp;lt;&amp;lt; Clear Row States;
r = dt &amp;lt;&amp;lt; Select Rows([5, 7, 8, 10]);
r &amp;lt;&amp;lt; Exclude;
dt &amp;lt;&amp;lt; Clear Select;
r = dt &amp;lt;&amp;lt; Select Rows([7, 8, 10]);   //Selection may be a subset of the above selection
r &amp;lt;&amp;lt; Exclude;  //This ends up unexcluding these rows&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;This behavior seems to happen only if the subsequent row selection is equal to or a subset of the initial set of excluded rows. &amp;nbsp;If I were to add row 11 to the second selection above however (making it different from the first selection), the second Exclude command would simply add row 11 to the set of excluded rows. &amp;nbsp;This is the behavior I want.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I cannot know if the second selection will be a subset of the first selection ahead of time, so it would be nice if there were a command that simply excludes the rows regardless of what is already excluded.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Second question: is there a way to exclude rows that does not require selecting them first? &amp;nbsp;For example, if I just have a vector containing the rows I wish to exclude, is there a way I could just use that?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the help.&lt;/P&gt;</description>
    <pubDate>Fri, 09 Jun 2023 22:07:44 GMT</pubDate>
    <dc:creator>nikles</dc:creator>
    <dc:date>2023-06-09T22:07:44Z</dc:date>
    <item>
      <title>Sequentially exclude rows?</title>
      <link>https://community.jmp.com/t5/Discussions/Sequentially-exclude-rows/m-p/365879#M61538</link>
      <description>&lt;P&gt;Hi. &amp;nbsp;Is there a command to exclude rows that doesn't also unexclude previously excluded rows? &amp;nbsp;In my script, I'd like to exclude rows in a table that already may have some of these rows excluded. &amp;nbsp;The problem is that if I use Exclude, it may actually Unexclude previously excluded rows. &amp;nbsp;For example:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);
dt = Open("$SAMPLE_DATA/Big Class.jmp");
dt &amp;lt;&amp;lt; Clear Row States;
r = dt &amp;lt;&amp;lt; Select Rows([5, 7, 8, 10]);
r &amp;lt;&amp;lt; Exclude;
dt &amp;lt;&amp;lt; Clear Select;
r = dt &amp;lt;&amp;lt; Select Rows([7, 8, 10]);   //Selection may be a subset of the above selection
r &amp;lt;&amp;lt; Exclude;  //This ends up unexcluding these rows&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;This behavior seems to happen only if the subsequent row selection is equal to or a subset of the initial set of excluded rows. &amp;nbsp;If I were to add row 11 to the second selection above however (making it different from the first selection), the second Exclude command would simply add row 11 to the set of excluded rows. &amp;nbsp;This is the behavior I want.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I cannot know if the second selection will be a subset of the first selection ahead of time, so it would be nice if there were a command that simply excludes the rows regardless of what is already excluded.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Second question: is there a way to exclude rows that does not require selecting them first? &amp;nbsp;For example, if I just have a vector containing the rows I wish to exclude, is there a way I could just use that?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the help.&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jun 2023 22:07:44 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Sequentially-exclude-rows/m-p/365879#M61538</guid>
      <dc:creator>nikles</dc:creator>
      <dc:date>2023-06-09T22:07:44Z</dc:date>
    </item>
    <item>
      <title>Re: Sequentially exclude rows?</title>
      <link>https://community.jmp.com/t5/Discussions/Sequentially-exclude-rows/m-p/365884#M61539</link>
      <description>Hi,&lt;BR /&gt;Have you considered using the variation of the Exclude command: "Exclude (1)"? The basic "Exclude" command is a toggle as you experienced in your script.&lt;BR /&gt;Best,&lt;BR /&gt;TS</description>
      <pubDate>Sun, 07 Mar 2021 18:34:18 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Sequentially-exclude-rows/m-p/365884#M61539</guid>
      <dc:creator>Thierry_S</dc:creator>
      <dc:date>2021-03-07T18:34:18Z</dc:date>
    </item>
    <item>
      <title>Re: Sequentially exclude rows?</title>
      <link>https://community.jmp.com/t5/Discussions/Sequentially-exclude-rows/m-p/365992#M61555</link>
      <description>&lt;P&gt;In addition to&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/11634"&gt;@Thierry_S&lt;/a&gt;&amp;nbsp;, here is the online documentation, it is well described there.&lt;/P&gt;&lt;P&gt;You can&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;request row states,&lt;/LI&gt;&lt;LI&gt;send commands to toggle them,&lt;/LI&gt;&lt;LI&gt;and specifically turn them on or off.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;A href="https://www.jmp.com/support/help/en/15.2/#page/jmp/row-states.shtml#" target="_blank"&gt;Row States (jmp.com)&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Mar 2021 08:35:27 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Sequentially-exclude-rows/m-p/365992#M61555</guid>
      <dc:creator>Georg</dc:creator>
      <dc:date>2021-03-08T08:35:27Z</dc:date>
    </item>
  </channel>
</rss>

