<?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: In JSL, with rows already selected, how do I select a subset of those cells which are in a colum in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/In-JSL-with-rows-already-selected-how-do-I-select-a-subset-of/m-p/50736#M28833</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/7154"&gt;@galactus3000&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;Select Where() allows you to extend, restrict, or clear previous selections:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Select Where( condition, &amp;lt;Current Selection( "extend" | "restrict" | "clear" )&amp;gt; );&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;For your situation, it sounds like you'll want to restrict to your previously selected rows.&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt = Open("$SAMPLE_DATA\Big Class.jmp");
dt &amp;lt;&amp;lt; Select Where( :age&amp;gt;14 );
Wait(1);
dt &amp;lt;&amp;lt; Select Where( :sex=="F", Current Selection( "restrict" ));&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I hope this helps!&lt;/P&gt;
&lt;P&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/2026"&gt;@jules&lt;/a&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 05 Feb 2018 19:41:04 GMT</pubDate>
    <dc:creator>jules</dc:creator>
    <dc:date>2018-02-05T19:41:04Z</dc:date>
    <item>
      <title>In JSL, with rows already selected, how do I select a subset of those cells which are in a column</title>
      <link>https://community.jmp.com/t5/Discussions/In-JSL-with-rows-already-selected-how-do-I-select-a-subset-of/m-p/50732#M28830</link>
      <description>&lt;P&gt;In JSL, with rows already selected, how do I select a subset of those cells which are in a column.&lt;/P&gt;&lt;P&gt;For instance, if rows 4, 12, 180, and 205 are already selected (for example), how do I subselect just the overlap cells of that and a certain column (column 10 for example) or columns (10,12 and 17 say).&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 05 Feb 2018 19:29:12 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/In-JSL-with-rows-already-selected-how-do-I-select-a-subset-of/m-p/50732#M28830</guid>
      <dc:creator>galactus3000</dc:creator>
      <dc:date>2018-02-05T19:29:12Z</dc:date>
    </item>
    <item>
      <title>Re: In JSL, with rows already selected, how do I select a subset of those cells which are in a colum</title>
      <link>https://community.jmp.com/t5/Discussions/In-JSL-with-rows-already-selected-how-do-I-select-a-subset-of/m-p/50734#M28831</link>
      <description>&lt;P&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/7154"&gt;@galactus3000&lt;/a&gt;,&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;You can leverage the "restrict" function&amp;nbsp;similar to how extend has been used below.&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
dt &amp;lt;&amp;lt; Select Rows( [5, 7, 8, 10, 15] ); // For demo purpose only 
dt &amp;lt;&amp;lt; Label( 1 );
dt &amp;lt;&amp;lt; Clear Select;
Wait( 2 );
dt &amp;lt;&amp;lt; Select Labeled; 
dt &amp;lt;&amp;lt; Select Where(:age &amp;gt; 12,"extend"); &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;I missed the subselect part until I saw&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/2026"&gt;@jules&lt;/a&gt;'s post.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 05 Feb 2018 19:51:56 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/In-JSL-with-rows-already-selected-how-do-I-select-a-subset-of/m-p/50734#M28831</guid>
      <dc:creator>uday_guntupalli</dc:creator>
      <dc:date>2018-02-05T19:51:56Z</dc:date>
    </item>
    <item>
      <title>Re: In JSL, with rows already selected, how do I select a subset of those cells which are in a colum</title>
      <link>https://community.jmp.com/t5/Discussions/In-JSL-with-rows-already-selected-how-do-I-select-a-subset-of/m-p/50736#M28833</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/7154"&gt;@galactus3000&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;Select Where() allows you to extend, restrict, or clear previous selections:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Select Where( condition, &amp;lt;Current Selection( "extend" | "restrict" | "clear" )&amp;gt; );&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;For your situation, it sounds like you'll want to restrict to your previously selected rows.&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt = Open("$SAMPLE_DATA\Big Class.jmp");
dt &amp;lt;&amp;lt; Select Where( :age&amp;gt;14 );
Wait(1);
dt &amp;lt;&amp;lt; Select Where( :sex=="F", Current Selection( "restrict" ));&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I hope this helps!&lt;/P&gt;
&lt;P&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/2026"&gt;@jules&lt;/a&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 05 Feb 2018 19:41:04 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/In-JSL-with-rows-already-selected-how-do-I-select-a-subset-of/m-p/50736#M28833</guid>
      <dc:creator>jules</dc:creator>
      <dc:date>2018-02-05T19:41:04Z</dc:date>
    </item>
    <item>
      <title>Re: In JSL, with rows already selected, how do I select a subset of those cells which are in a colum</title>
      <link>https://community.jmp.com/t5/Discussions/In-JSL-with-rows-already-selected-how-do-I-select-a-subset-of/m-p/50744#M28835</link>
      <description>&lt;P&gt;I am not sure that&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/2026"&gt;@jules&lt;/a&gt;&amp;nbsp;or&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/6696"&gt;@uday_guntupalli&lt;/a&gt;&amp;nbsp;are interpreting your question properly.&amp;nbsp; What I believe you are asking, is "How do you reference the selected rows for a specific column, or set of columns.&lt;/P&gt;
&lt;P&gt;JMP allows one to access any given cell by the column name or number, and the row number.&amp;nbsp; Selected rows can be accessed by getting back from JMP a list of the rows that have been selected.&amp;nbsp; Below is a little script that shows some of the uses&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; select where( :Age &amp;gt; 15 );

// Examples
Show( dt &amp;lt;&amp;lt; get selected rows );
Show( :name[dt &amp;lt;&amp;lt; get selected rows] );
Show( :Name[(dt &amp;lt;&amp;lt; get selected rows)[2]], 
	:age[(dt &amp;lt;&amp;lt; get selected rows)[2]] );&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 05 Feb 2018 20:16:28 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/In-JSL-with-rows-already-selected-how-do-I-select-a-subset-of/m-p/50744#M28835</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2018-02-05T20:16:28Z</dc:date>
    </item>
    <item>
      <title>Re: In JSL, with rows already selected, how do I select a subset of those cells which are in a colum</title>
      <link>https://community.jmp.com/t5/Discussions/In-JSL-with-rows-already-selected-how-do-I-select-a-subset-of/m-p/50751#M28838</link>
      <description>&lt;P&gt;this is great ... thanks!&lt;/P&gt;&lt;P&gt;I want to place the value "1" in a certain column for which rows have been selected by the Process Capability --&amp;gt; Select out of spec values option&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;for each out of spec value in column A, I want to place a "1" in same row of column B.&lt;/P&gt;</description>
      <pubDate>Mon, 05 Feb 2018 22:07:07 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/In-JSL-with-rows-already-selected-how-do-I-select-a-subset-of/m-p/50751#M28838</guid>
      <dc:creator>galactus3000</dc:creator>
      <dc:date>2018-02-05T22:07:07Z</dc:date>
    </item>
    <item>
      <title>Re: In JSL, with rows already selected, how do I select a subset of those cells which are in a colum</title>
      <link>https://community.jmp.com/t5/Discussions/In-JSL-with-rows-already-selected-how-do-I-select-a-subset-of/m-p/50752#M28839</link>
      <description>&lt;P&gt;ah ... so the [2] will refer to the 2nd selected row&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 05 Feb 2018 22:08:09 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/In-JSL-with-rows-already-selected-how-do-I-select-a-subset-of/m-p/50752#M28839</guid>
      <dc:creator>galactus3000</dc:creator>
      <dc:date>2018-02-05T22:08:09Z</dc:date>
    </item>
    <item>
      <title>Re: In JSL, with rows already selected, how do I select a subset of those cells which are in a colum</title>
      <link>https://community.jmp.com/t5/Discussions/In-JSL-with-rows-already-selected-how-do-I-select-a-subset-of/m-p/50754#M28841</link>
      <description>&lt;P&gt;The selected rows form a row-matrix that can be used to subset a column:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;rows = dt &amp;lt;&amp;lt; get selected rows;   
subsetValues = Column(10)[rows];	&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 05 Feb 2018 22:35:55 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/In-JSL-with-rows-already-selected-how-do-I-select-a-subset-of/m-p/50754#M28841</guid>
      <dc:creator>David_Burnham</dc:creator>
      <dc:date>2018-02-05T22:35:55Z</dc:date>
    </item>
    <item>
      <title>Re: In JSL, with rows already selected, how do I select a subset of those cells which are in a colum</title>
      <link>https://community.jmp.com/t5/Discussions/In-JSL-with-rows-already-selected-how-do-I-select-a-subset-of/m-p/50755#M28842</link>
      <description>&lt;P&gt;All of the selected rows can be set with one statement&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;:age[(dt &amp;lt;&amp;lt; get selected rows)] = 12;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;In the above statement, all rows that have been selected, will be set to 12&lt;/P&gt;</description>
      <pubDate>Mon, 05 Feb 2018 22:36:21 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/In-JSL-with-rows-already-selected-how-do-I-select-a-subset-of/m-p/50755#M28842</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2018-02-05T22:36:21Z</dc:date>
    </item>
  </channel>
</rss>

