<?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: Get Rows() not working in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Get-Rows-not-working/m-p/394586#M64498</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can do this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;row_nums = data &amp;lt;&amp;lt; Get Rows Where( Num( data:"Donor" ) == i &amp;amp; data:"A or B" == "A" );

Write( data[row_nums, 0] );

&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Once you have the row numbers you need in row_nums, you can index the table (which I presumed is named data) directly using the syntax table[row,col]. In your case, row_nums are the rows you want, and 0 means to get all columns.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cheers,&lt;/P&gt;
&lt;P&gt;Brady&lt;/P&gt;</description>
    <pubDate>Fri, 18 Jun 2021 18:36:09 GMT</pubDate>
    <dc:creator>brady_brady</dc:creator>
    <dc:date>2021-06-18T18:36:09Z</dc:date>
    <item>
      <title>Get Rows() not working</title>
      <link>https://community.jmp.com/t5/Discussions/Get-Rows-not-working/m-p/394579#M64497</link>
      <description>&lt;P&gt;I have&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;row_nums = data &amp;lt;&amp;lt; Get Rows Where( num(data:"Donor") == i &amp;amp; data:"A or B" == "A");
d_A_rows = data &amp;lt;&amp;lt; Get Rows(row_nums);
Write(d_A_rows);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;but it writes the row numbers still instead of the actual row content. Am I missing something?&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jun 2023 19:50:14 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Get-Rows-not-working/m-p/394579#M64497</guid>
      <dc:creator>mostarr</dc:creator>
      <dc:date>2023-06-09T19:50:14Z</dc:date>
    </item>
    <item>
      <title>Re: Get Rows() not working</title>
      <link>https://community.jmp.com/t5/Discussions/Get-Rows-not-working/m-p/394586#M64498</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can do this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;row_nums = data &amp;lt;&amp;lt; Get Rows Where( Num( data:"Donor" ) == i &amp;amp; data:"A or B" == "A" );

Write( data[row_nums, 0] );

&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Once you have the row numbers you need in row_nums, you can index the table (which I presumed is named data) directly using the syntax table[row,col]. In your case, row_nums are the rows you want, and 0 means to get all columns.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cheers,&lt;/P&gt;
&lt;P&gt;Brady&lt;/P&gt;</description>
      <pubDate>Fri, 18 Jun 2021 18:36:09 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Get-Rows-not-working/m-p/394586#M64498</guid>
      <dc:creator>brady_brady</dc:creator>
      <dc:date>2021-06-18T18:36:09Z</dc:date>
    </item>
    <item>
      <title>Re: Get Rows() not working</title>
      <link>https://community.jmp.com/t5/Discussions/Get-Rows-not-working/m-p/394593#M64499</link>
      <description>Thank you. That works perfectly, and is very incisive in educating me about coordinate-indexing tables as well.</description>
      <pubDate>Fri, 18 Jun 2021 18:43:10 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Get-Rows-not-working/m-p/394593#M64499</guid>
      <dc:creator>mostarr</dc:creator>
      <dc:date>2021-06-18T18:43:10Z</dc:date>
    </item>
  </channel>
</rss>

