<?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 row number of value contain in a column without select row in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/get-row-number-of-value-contain-in-a-column-without-select-row/m-p/901808#M106097</link>
    <description>&lt;P&gt;in JMP18, &lt;FONT face="courier new,courier"&gt;Where()&lt;/FONT&gt; was introduced as a faster alternative to &lt;FONT face="courier new,courier"&gt;get rows where().&lt;BR /&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;On the other hand,&amp;nbsp;&lt;FONT face="courier new,courier"&gt;Get rows where(Contains())&lt;/FONT&gt; is quite fast for what it has to do. &lt;BR /&gt;Can you give an example what "too much time" means? How many rows are there in the data table ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt = Open( "$SAMPLE_DATA/Aircraft Incidents.jmp" );
dt= dt &amp;lt;&amp;lt; concatenate({dt,dt,dt,dt,dt,dt,dt,dt});
wait(0);
dt= dt &amp;lt;&amp;lt; concatenate({dt,dt,dt,dt,dt,dt,dt,dt});&lt;BR /&gt;
t0=hptime();
current data table() &amp;lt;&amp;lt; get rows where(contains(:location, "SD"));
show(nrows(),(hptime()-t0)/1000000);

t0=hptime();
where(dt,contains(:location, "SD"));
show(nrows(),(hptime()-t0)/1000000);

close(dt, noSave);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 18 Sep 2025 17:46:44 GMT</pubDate>
    <dc:creator>hogi</dc:creator>
    <dc:date>2025-09-18T17:46:44Z</dc:date>
    <item>
      <title>get row number of value contain in a column without select row</title>
      <link>https://community.jmp.com/t5/Discussions/get-row-number-of-value-contain-in-a-column-without-select-row/m-p/901732#M106091</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I want to&amp;nbsp;get the row number of a value (for example : "Value_A") that might be contained in a column (called "Column_A") without using the following code : &amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;rmat = dt &amp;lt;&amp;lt; get rows where( Contains( Column( dt, "Column_A" )[], "Value_A" ) );&lt;BR /&gt;Try( row_number_wanted = rmat[1] );&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I don't want to use such code because it takes too much time when a lot of values in a big datatable need to be retrived.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is there a way ?&lt;/P&gt;</description>
      <pubDate>Thu, 18 Sep 2025 14:39:19 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/get-row-number-of-value-contain-in-a-column-without-select-row/m-p/901732#M106091</guid>
      <dc:creator>LoglinearWalk37</dc:creator>
      <dc:date>2025-09-18T14:39:19Z</dc:date>
    </item>
    <item>
      <title>Re: get row number of value contain in a column without select row</title>
      <link>https://community.jmp.com/t5/Discussions/get-row-number-of-value-contain-in-a-column-without-select-row/m-p/901808#M106097</link>
      <description>&lt;P&gt;in JMP18, &lt;FONT face="courier new,courier"&gt;Where()&lt;/FONT&gt; was introduced as a faster alternative to &lt;FONT face="courier new,courier"&gt;get rows where().&lt;BR /&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;On the other hand,&amp;nbsp;&lt;FONT face="courier new,courier"&gt;Get rows where(Contains())&lt;/FONT&gt; is quite fast for what it has to do. &lt;BR /&gt;Can you give an example what "too much time" means? How many rows are there in the data table ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt = Open( "$SAMPLE_DATA/Aircraft Incidents.jmp" );
dt= dt &amp;lt;&amp;lt; concatenate({dt,dt,dt,dt,dt,dt,dt,dt});
wait(0);
dt= dt &amp;lt;&amp;lt; concatenate({dt,dt,dt,dt,dt,dt,dt,dt});&lt;BR /&gt;
t0=hptime();
current data table() &amp;lt;&amp;lt; get rows where(contains(:location, "SD"));
show(nrows(),(hptime()-t0)/1000000);

t0=hptime();
where(dt,contains(:location, "SD"));
show(nrows(),(hptime()-t0)/1000000);

close(dt, noSave);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Sep 2025 17:46:44 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/get-row-number-of-value-contain-in-a-column-without-select-row/m-p/901808#M106097</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2025-09-18T17:46:44Z</dc:date>
    </item>
    <item>
      <title>Re: get row number of value contain in a column without select row</title>
      <link>https://community.jmp.com/t5/Discussions/get-row-number-of-value-contain-in-a-column-without-select-row/m-p/901936#M106107</link>
      <description>&lt;P&gt;Thanks a lot hogi!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It took me more than 1 hour with the&amp;nbsp;&lt;FONT face="courier new,courier"&gt;Get rows where(Contains().&amp;nbsp;&lt;/FONT&gt;I had to stop it a some point.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;With &lt;FONT face="courier new,courier"&gt;Where()&lt;/FONT&gt;&amp;nbsp;it took less than 1 minute! Perfect!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks again!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 19 Sep 2025 09:38:11 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/get-row-number-of-value-contain-in-a-column-without-select-row/m-p/901936#M106107</guid>
      <dc:creator>LoglinearWalk37</dc:creator>
      <dc:date>2025-09-19T09:38:11Z</dc:date>
    </item>
  </channel>
</rss>

