<?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: How to format a list of columns? in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/How-to-format-a-list-of-columns/m-p/388005#M63819</link>
    <description>&lt;P&gt;You're close, you just need the column names to be in a list (see code below.)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Be sure to check out "Standardize Attributes" in the columns menu (or from a right-click on a column header). It will allow you to alter settings for all selected columns en-masse via point-and-click, which may obviate the need to script this, depending on your use case.&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;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt = Current Data Table();

colList = {"MEAN", "STDEV", "MIN", "Q1", "MEDIAN", "Q3", "MAX"};

For( i = 1, i &amp;lt;= N Items( colList ), i++,
	Column( dt, colList[i] ) &amp;lt;&amp;lt; data type( "numeric" ) &amp;lt;&amp;lt; Format( "Fixed Dec", 12, 3 )
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Mon, 24 May 2021 19:57:57 GMT</pubDate>
    <dc:creator>brady_brady</dc:creator>
    <dc:date>2021-05-24T19:57:57Z</dc:date>
    <item>
      <title>How to format a list of columns?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-format-a-list-of-columns/m-p/387960#M63816</link>
      <description>&lt;P&gt;I just can't seem to figure out the syntax. I'm trying to set this group of columns to a fixed decimal. I can't figure out how to assign the columns to a variable&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;colList = column( dt, "MEAN", "STDEV", "MIN", "Q1", "MEDIAN", "Q3", "MAX")
For(i=1,i&amp;lt;=n items(colList), i++,
column(dt, colList[i]) &amp;lt;&amp;lt; data type("numeric")&amp;lt;&amp;lt; Format( "Fixed Dec", 12, 3 );
);&lt;BR /&gt;&lt;BR /&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jun 2023 19:47:44 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-format-a-list-of-columns/m-p/387960#M63816</guid>
      <dc:creator>aliegner1</dc:creator>
      <dc:date>2023-06-09T19:47:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to format a list of columns?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-format-a-list-of-columns/m-p/388005#M63819</link>
      <description>&lt;P&gt;You're close, you just need the column names to be in a list (see code below.)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Be sure to check out "Standardize Attributes" in the columns menu (or from a right-click on a column header). It will allow you to alter settings for all selected columns en-masse via point-and-click, which may obviate the need to script this, depending on your use case.&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;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt = Current Data Table();

colList = {"MEAN", "STDEV", "MIN", "Q1", "MEDIAN", "Q3", "MAX"};

For( i = 1, i &amp;lt;= N Items( colList ), i++,
	Column( dt, colList[i] ) &amp;lt;&amp;lt; data type( "numeric" ) &amp;lt;&amp;lt; Format( "Fixed Dec", 12, 3 )
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 24 May 2021 19:57:57 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-format-a-list-of-columns/m-p/388005#M63819</guid>
      <dc:creator>brady_brady</dc:creator>
      <dc:date>2021-05-24T19:57:57Z</dc:date>
    </item>
  </channel>
</rss>

