<?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 How do I check that a column contains only integers? in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/How-do-I-check-that-a-column-contains-only-integers/m-p/257255#M50550</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to check that a column contains only integers before running the rest of my script but I don't know how to do that. Ideally I would like to be able to identify precisely the rows with decimal values.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance for your help!&lt;/P&gt;</description>
    <pubDate>Fri, 10 Apr 2020 13:08:20 GMT</pubDate>
    <dc:creator>anne_sa</dc:creator>
    <dc:date>2020-04-10T13:08:20Z</dc:date>
    <item>
      <title>How do I check that a column contains only integers?</title>
      <link>https://community.jmp.com/t5/Discussions/How-do-I-check-that-a-column-contains-only-integers/m-p/257255#M50550</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to check that a column contains only integers before running the rest of my script but I don't know how to do that. Ideally I would like to be able to identify precisely the rows with decimal values.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance for your help!&lt;/P&gt;</description>
      <pubDate>Fri, 10 Apr 2020 13:08:20 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-do-I-check-that-a-column-contains-only-integers/m-p/257255#M50550</guid>
      <dc:creator>anne_sa</dc:creator>
      <dc:date>2020-04-10T13:08:20Z</dc:date>
    </item>
    <item>
      <title>Re: How do I check that a column contains only integers?</title>
      <link>https://community.jmp.com/t5/Discussions/How-do-I-check-that-a-column-contains-only-integers/m-p/257266#M50552</link>
      <description>&lt;P&gt;See the last line.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default to Here( 1 );

// generate test case with a mix of 90% integers and 10% non-integers
data = J( 30, 1,
	If( Random Uniform() &amp;lt; 0.1,
		Random Normal(),
		Random Integer( -6, 6 )
	);
);

// check results
Show( data );

// make a data table example
dt = New Table( "Test Cases",
	New Column( "Data", Numeric, Continuous,
		Values( data )
	)
);

// now the solution
nonIntegersHere = dt &amp;lt;&amp;lt; Get Rows Where( Modulo( :Data, 1 ) );&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 10 Apr 2020 13:42:41 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-do-I-check-that-a-column-contains-only-integers/m-p/257266#M50552</guid>
      <dc:creator>Mark_Bailey</dc:creator>
      <dc:date>2020-04-10T13:42:41Z</dc:date>
    </item>
    <item>
      <title>Re: How do I check that a column contains only integers?</title>
      <link>https://community.jmp.com/t5/Discussions/How-do-I-check-that-a-column-contains-only-integers/m-p/257276#M50553</link>
      <description>&lt;P&gt;What a beautiful solution!! Thanks &lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/5358"&gt;@Mark_Bailey&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Apr 2020 14:05:04 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-do-I-check-that-a-column-contains-only-integers/m-p/257276#M50553</guid>
      <dc:creator>anne_sa</dc:creator>
      <dc:date>2020-04-10T14:05:04Z</dc:date>
    </item>
  </channel>
</rss>

