<?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: Min and Max values of all numeric columns in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Min-and-Max-values-of-all-numeric-columns/m-p/54461#M30784</link>
    <description>&lt;P&gt;Try this one&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
dt = Open( "path" );

For( i = 1, i &amp;lt;= N Col( dt ), i++,
	If( Column( dt, i ) &amp;lt;&amp;lt; get data type == "Numeric",
		Write( "\!n", Column( dt, i ) &amp;lt;&amp;lt; get name );
		Write( Column( dt, i ), "\!nMin: ", Col Min( Column( dt, i ) ) );
		Write( "\!nMax: ", Col Max( Column( dt, i ) ) );
	)
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Wed, 04 Apr 2018 21:05:40 GMT</pubDate>
    <dc:creator>txnelson</dc:creator>
    <dc:date>2018-04-04T21:05:40Z</dc:date>
    <item>
      <title>Min and Max values of all numeric columns</title>
      <link>https://community.jmp.com/t5/Discussions/Min-and-Max-values-of-all-numeric-columns/m-p/54459#M30782</link>
      <description>&lt;P&gt;I am trying to extract minimum and maximum values from all numeric columns of a table. However, I also want the column name of which the values are extracted.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is my script:&lt;/P&gt;&lt;P&gt;dt = Open("Path");&lt;BR /&gt;nc = N Row(dt);&lt;BR /&gt;mycol = dt &amp;lt;&amp;lt; get column names;&lt;BR /&gt;//show(mycol);&lt;BR /&gt;for(i=1,i&amp;lt;=nc,i++,&lt;BR /&gt;If( x = Column( dt, i ) &amp;lt;&amp;lt; get data type() == "Numeric",&lt;BR /&gt;myMax = col max(column(dt,i));&lt;BR /&gt;print("Max:",myMax);&lt;BR /&gt;myMin = col min(column(dt,i));&lt;BR /&gt;print("Min",myMin);&lt;BR /&gt;));&lt;/P&gt;&lt;P&gt;I also get the following JMP Alert when I run this script:&amp;nbsp;&lt;/P&gt;&lt;P&gt;Check script for using an assignment with single = where a test for equality with double == is normally expected. Expression is&lt;BR /&gt;"x = Column( dt, i ) &amp;lt;&amp;lt; get data type() == "Numeric""&lt;/P&gt;&lt;P&gt;However, I am able to extract the min and max values. Can anyone point out as to how I can extract the names of those numeric columns as well and put that in a new table with Column Name, Min and Max values? Thanks.&lt;/P&gt;</description>
      <pubDate>Wed, 04 Apr 2018 20:32:35 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Min-and-Max-values-of-all-numeric-columns/m-p/54459#M30782</guid>
      <dc:creator>powerpuff</dc:creator>
      <dc:date>2018-04-04T20:32:35Z</dc:date>
    </item>
    <item>
      <title>Re: Min and Max values of all numeric columns</title>
      <link>https://community.jmp.com/t5/Discussions/Min-and-Max-values-of-all-numeric-columns/m-p/54461#M30784</link>
      <description>&lt;P&gt;Try this one&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
dt = Open( "path" );

For( i = 1, i &amp;lt;= N Col( dt ), i++,
	If( Column( dt, i ) &amp;lt;&amp;lt; get data type == "Numeric",
		Write( "\!n", Column( dt, i ) &amp;lt;&amp;lt; get name );
		Write( Column( dt, i ), "\!nMin: ", Col Min( Column( dt, i ) ) );
		Write( "\!nMax: ", Col Max( Column( dt, i ) ) );
	)
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 04 Apr 2018 21:05:40 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Min-and-Max-values-of-all-numeric-columns/m-p/54461#M30784</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2018-04-04T21:05:40Z</dc:date>
    </item>
    <item>
      <title>Re: Min and Max values of all numeric columns</title>
      <link>https://community.jmp.com/t5/Discussions/Min-and-Max-values-of-all-numeric-columns/m-p/54462#M30785</link>
      <description>&lt;P&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/10894"&gt;@powerpuff&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt = Open( "$SAMPLE_DATA/Big Class.jmp" );

NumericCols = {};
Minimums = {};
Maximums = {}; 

for(i = 1, i &amp;lt;= N Cols(dt), i++,
		Col = Column(dt,i);
		ColDataType = Col &amp;lt;&amp;lt; Get Data Type; 
		If( ColDataType == "Numeric",
			Insert Into(NumericCols,Col &amp;lt;&amp;lt; Get Name); 
			Insert Into(Minimums, Col Min(Col)); 
			Insert Into(Maximums, Col Max(Col)); 
		  );
   );
   
Show(NumericCols); 
Show(Minimums); 
Show(Maximums); &lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 04 Apr 2018 21:07:59 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Min-and-Max-values-of-all-numeric-columns/m-p/54462#M30785</guid>
      <dc:creator>uday_guntupalli</dc:creator>
      <dc:date>2018-04-04T21:07:59Z</dc:date>
    </item>
    <item>
      <title>Re: Min and Max values of all numeric columns</title>
      <link>https://community.jmp.com/t5/Discussions/Min-and-Max-values-of-all-numeric-columns/m-p/54467#M30789</link>
      <description>&lt;P&gt;For a non-JSL solution...&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;From&amp;nbsp;the columns red triangle in the colmns panel (left side of data table) select "Column Viewer". &amp;nbsp;&lt;/LI&gt;
&lt;LI&gt;Select the columns of interest&lt;/LI&gt;
&lt;LI&gt;Click on the "Show Quartiles" option&lt;/LI&gt;
&lt;LI&gt;Click Show Summary&lt;/LI&gt;
&lt;LI&gt;From the Summary Statistics red triangle menu select "Data Table View"&lt;/LI&gt;
&lt;LI&gt;Delete the columns you do not want.&lt;/LI&gt;
&lt;LI&gt;Done.&amp;nbsp;&lt;/LI&gt;
&lt;/OL&gt;</description>
      <pubDate>Wed, 04 Apr 2018 21:55:55 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Min-and-Max-values-of-all-numeric-columns/m-p/54467#M30789</guid>
      <dc:creator>KarenC</dc:creator>
      <dc:date>2018-04-04T21:55:55Z</dc:date>
    </item>
  </channel>
</rss>

