<?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: Iterate Through Data Table to Select Matching Items in Another Data Table in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Iterate-Through-Data-Table-to-Select-Matching-Items-in-Another/m-p/548359#M76521</link>
    <description>&lt;P&gt;You are correct&lt;/P&gt;</description>
    <pubDate>Thu, 22 Sep 2022 19:34:45 GMT</pubDate>
    <dc:creator>txnelson</dc:creator>
    <dc:date>2022-09-22T19:34:45Z</dc:date>
    <item>
      <title>Iterate Through Data Table to Select Matching Items in Another Data Table</title>
      <link>https://community.jmp.com/t5/Discussions/Iterate-Through-Data-Table-to-Select-Matching-Items-in-Another/m-p/39883#M23349</link>
      <description>&lt;P&gt;Good Morning All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to create a script which will iterate through two columns on one data table and select all of the matching characters on another data table to perform a simple bivariate graph. To help visualize, consider me trying to iterate through Little Class.JMP by Sex and Name and select all matching rows on Big Class.JMP, then for each iteration, graph height by weight.&lt;/P&gt;</description>
      <pubDate>Fri, 02 Jun 2017 13:19:10 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Iterate-Through-Data-Table-to-Select-Matching-Items-in-Another/m-p/39883#M23349</guid>
      <dc:creator>Ksrzg01</dc:creator>
      <dc:date>2017-06-02T13:19:10Z</dc:date>
    </item>
    <item>
      <title>Re: Iterate Through Data Table to Select Matching Items in Another Data Table</title>
      <link>https://community.jmp.com/t5/Discussions/Iterate-Through-Data-Table-to-Select-Matching-Items-in-Another/m-p/39889#M23353</link>
      <description>&lt;P&gt;Is this what you are thinking of?&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( Mod( Row(), 3 ) == 0 );
dtlookup = dt &amp;lt;&amp;lt; subset( selected columns( 0 ), selected rows( 1 ) );
For( i = 1, i &amp;lt;= N Rows( dtlookup ), i++,
	dt &amp;lt;&amp;lt; clear row states;
	dt &amp;lt;&amp;lt; select where( dtlookup:name[i] == dt:name &amp;amp; dtlookup:sex == dt:sex );
	dt &amp;lt;&amp;lt; invert row selection;
	dt &amp;lt;&amp;lt; hide and exclude( 1 );
	biv = Bivariate( Y( :height ), X( :weight ) );
	Report( biv )[Outline Box( 1 )] &amp;lt;&amp;lt; set title( dtlookup:name[i] );
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 02 Jun 2017 14:58:31 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Iterate-Through-Data-Table-to-Select-Matching-Items-in-Another/m-p/39889#M23353</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2017-06-02T14:58:31Z</dc:date>
    </item>
    <item>
      <title>Re: Iterate Through Data Table to Select Matching Items in Another Data Table</title>
      <link>https://community.jmp.com/t5/Discussions/Iterate-Through-Data-Table-to-Select-Matching-Items-in-Another/m-p/39891#M23355</link>
      <description>&lt;P&gt;This is pretty close to what im looking for. Now imagine I have a column of random ages&amp;nbsp;in another table. I want the script to go down the column of the various ages, subset the&amp;nbsp;ages from the big class DT, and plot the hight by weight. I know I could just do a fit x by y by age but the data set I'm looking at is too large to do this.&lt;/P&gt;</description>
      <pubDate>Fri, 02 Jun 2017 15:15:59 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Iterate-Through-Data-Table-to-Select-Matching-Items-in-Another/m-p/39891#M23355</guid>
      <dc:creator>Ksrzg01</dc:creator>
      <dc:date>2017-06-02T15:15:59Z</dc:date>
    </item>
    <item>
      <title>Re: Iterate Through Data Table to Select Matching Items in Another Data Table</title>
      <link>https://community.jmp.com/t5/Discussions/Iterate-Through-Data-Table-to-Select-Matching-Items-in-Another/m-p/39893#M23357</link>
      <description>&lt;P&gt;The code I gave you just needs to be expanded to the logic you described in your response. &amp;nbsp;You should be able to write that code given the leg up of my example, and access to the Scripting Guide and Scripting Index&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Help==Books==&amp;gt;Scripting Guide&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Help==&amp;gt;Scripting Index&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Jun 2017 15:21:32 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Iterate-Through-Data-Table-to-Select-Matching-Items-in-Another/m-p/39893#M23357</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2017-06-02T15:21:32Z</dc:date>
    </item>
    <item>
      <title>Re: Iterate Through Data Table to Select Matching Items in Another Data Table</title>
      <link>https://community.jmp.com/t5/Discussions/Iterate-Through-Data-Table-to-Select-Matching-Items-in-Another/m-p/39899#M23363</link>
      <description>&lt;P&gt;Thanks for the help Jim! Finally got it all figured out with very little variation to the solution you provided me.&lt;/P&gt;</description>
      <pubDate>Fri, 02 Jun 2017 16:24:27 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Iterate-Through-Data-Table-to-Select-Matching-Items-in-Another/m-p/39899#M23363</guid>
      <dc:creator>Ksrzg01</dc:creator>
      <dc:date>2017-06-02T16:24:27Z</dc:date>
    </item>
    <item>
      <title>Re: Iterate Through Data Table to Select Matching Items in Another Data Table</title>
      <link>https://community.jmp.com/t5/Discussions/Iterate-Through-Data-Table-to-Select-Matching-Items-in-Another/m-p/39901#M23365</link>
      <description>&lt;P&gt;Hey, one last thing. How can I save each individual graph to a journal?&lt;/P&gt;</description>
      <pubDate>Fri, 02 Jun 2017 17:10:02 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Iterate-Through-Data-Table-to-Select-Matching-Items-in-Another/m-p/39901#M23365</guid>
      <dc:creator>Ksrzg01</dc:creator>
      <dc:date>2017-06-02T17:10:02Z</dc:date>
    </item>
    <item>
      <title>Re: Iterate Through Data Table to Select Matching Items in Another Data Table</title>
      <link>https://community.jmp.com/t5/Discussions/Iterate-Through-Data-Table-to-Select-Matching-Items-in-Another/m-p/39917#M23374</link>
      <description>&lt;P&gt;Here is the example from the Scripting Index on saving to a journal&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
//This message applies to all display box objects
Open( "$SAMPLE_DATA/Big Class.jmp" );
biv = bivariate( y( :weight ), x( :height ) );
rbiv = biv &amp;lt;&amp;lt; report;
rbiv &amp;lt;&amp;lt; Save Journal( "path/to/example.jrn" );&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 02 Jun 2017 21:25:56 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Iterate-Through-Data-Table-to-Select-Matching-Items-in-Another/m-p/39917#M23374</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2017-06-02T21:25:56Z</dc:date>
    </item>
    <item>
      <title>Re: Iterate Through Data Table to Select Matching Items in Another Data Table</title>
      <link>https://community.jmp.com/t5/Discussions/Iterate-Through-Data-Table-to-Select-Matching-Items-in-Another/m-p/40080#M23464</link>
      <description>&lt;P&gt;Worked great. Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 07 Jun 2017 15:22:35 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Iterate-Through-Data-Table-to-Select-Matching-Items-in-Another/m-p/40080#M23464</guid>
      <dc:creator>Ksrzg01</dc:creator>
      <dc:date>2017-06-07T15:22:35Z</dc:date>
    </item>
    <item>
      <title>Re: Iterate Through Data Table to Select Matching Items in Another Data Table</title>
      <link>https://community.jmp.com/t5/Discussions/Iterate-Through-Data-Table-to-Select-Matching-Items-in-Another/m-p/548280#M76516</link>
      <description>&lt;P&gt;Should it be this? I don't see why name gets [i] but sex does not get [i]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;dt &amp;lt;&amp;lt; select where( dtlookup:name[i] == dt:name &amp;amp; dtlookup:sex[i] == dt:sex );

//rather than

dt &amp;lt;&amp;lt; select where( dtlookup:name[i] == dt:name &amp;amp; dtlookup:sex == dt:sex );&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Sep 2022 17:08:55 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Iterate-Through-Data-Table-to-Select-Matching-Items-in-Another/m-p/548280#M76516</guid>
      <dc:creator>jj_jmp</dc:creator>
      <dc:date>2022-09-22T17:08:55Z</dc:date>
    </item>
    <item>
      <title>Re: Iterate Through Data Table to Select Matching Items in Another Data Table</title>
      <link>https://community.jmp.com/t5/Discussions/Iterate-Through-Data-Table-to-Select-Matching-Items-in-Another/m-p/548359#M76521</link>
      <description>&lt;P&gt;You are correct&lt;/P&gt;</description>
      <pubDate>Thu, 22 Sep 2022 19:34:45 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Iterate-Through-Data-Table-to-Select-Matching-Items-in-Another/m-p/548359#M76521</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2022-09-22T19:34:45Z</dc:date>
    </item>
  </channel>
</rss>

