<?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: sélection de lignes in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/s%C3%A9lection-de-lignes/m-p/609611#M81063</link>
    <description>&lt;P&gt;One way to do this would be to grab the left-most digit of the right-most 2 digits, then see if it is 4. Then, select the rows where this formula returns a 1. Sample table attached.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Jed_Campbell_0-1678289110558.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/50851i4622FD125DCCFE40/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Jed_Campbell_0-1678289110558.png" alt="Jed_Campbell_0-1678289110558.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 08 Mar 2023 15:27:03 GMT</pubDate>
    <dc:creator>Jed_Campbell</dc:creator>
    <dc:date>2023-03-08T15:27:03Z</dc:date>
    <item>
      <title>sélection de lignes</title>
      <link>https://community.jmp.com/t5/Discussions/s%C3%A9lection-de-lignes/m-p/609563#M81058</link>
      <description>&lt;P&gt;Je cherche comment sélectionner les lignes dont l’avant dernier chiffre est 4, par exemple sélectionner la ligne qui a pour valeur «&amp;nbsp;235&lt;STRONG&gt;4&lt;/STRONG&gt;6&amp;nbsp;»&lt;/P&gt;</description>
      <pubDate>Thu, 08 Jun 2023 16:30:38 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/s%C3%A9lection-de-lignes/m-p/609563#M81058</guid>
      <dc:creator>hcarr01</dc:creator>
      <dc:date>2023-06-08T16:30:38Z</dc:date>
    </item>
    <item>
      <title>Re: sélection de lignes</title>
      <link>https://community.jmp.com/t5/Discussions/s%C3%A9lection-de-lignes/m-p/609611#M81063</link>
      <description>&lt;P&gt;One way to do this would be to grab the left-most digit of the right-most 2 digits, then see if it is 4. Then, select the rows where this formula returns a 1. Sample table attached.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Jed_Campbell_0-1678289110558.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/50851i4622FD125DCCFE40/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Jed_Campbell_0-1678289110558.png" alt="Jed_Campbell_0-1678289110558.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Mar 2023 15:27:03 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/s%C3%A9lection-de-lignes/m-p/609611#M81063</guid>
      <dc:creator>Jed_Campbell</dc:creator>
      <dc:date>2023-03-08T15:27:03Z</dc:date>
    </item>
    <item>
      <title>Re: sélection de lignes</title>
      <link>https://community.jmp.com/t5/Discussions/s%C3%A9lection-de-lignes/m-p/609613#M81064</link>
      <description>&lt;P&gt;Here is a simple example that selects the rows where the&amp;nbsp;&lt;SPAN&gt;penultimate digit is 4&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="txnelson_0-1678289510224.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/50852iFD1BBAF7A61884E7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="txnelson_0-1678289510224.png" alt="txnelson_0-1678289510224.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
dt = New Table( "hcarr01",
	add rows( 100 ),
	New Column( "example", set each value( Random Integer( -1000, 1000 ) ) )
);

// This is the selection statement to select the rows whose penultimate digit is 4
dt &amp;lt;&amp;lt; select where( Substr( Char( :example ), -2, 1 ) == "4" );&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 08 Mar 2023 15:34:52 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/s%C3%A9lection-de-lignes/m-p/609613#M81064</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2023-03-08T15:34:52Z</dc:date>
    </item>
    <item>
      <title>Re: sélection de lignes</title>
      <link>https://community.jmp.com/t5/Discussions/s%C3%A9lection-de-lignes/m-p/609643#M81069</link>
      <description>&lt;P&gt;It's good to have choices. Here's one that avoids the string conversion.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt &amp;lt;&amp;lt; select where( 40 &amp;lt;= Mod( Abs( :example ), 100 ) &amp;lt; 50 );&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;You might prefer one of the others that uses conversion to string because...well, if Jim hadn't included negative numbers, I'd have left out the abs(...).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/5080"&gt;@DonMcCormack&lt;/a&gt; - challenge!&lt;/P&gt;</description>
      <pubDate>Wed, 08 Mar 2023 17:33:31 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/s%C3%A9lection-de-lignes/m-p/609643#M81069</guid>
      <dc:creator>Craige_Hales</dc:creator>
      <dc:date>2023-03-08T17:33:31Z</dc:date>
    </item>
  </channel>
</rss>

