<?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 Changing the format of a variable in a data table in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Changing-the-format-of-a-variable-in-a-data-table/m-p/236628#M46694</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;i have the following syntax:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt2&amp;lt;&amp;lt; Summary(
	Group( :Sample ),
	Mean( :dilution factor, :l10t ),
	Freq( "None" ),
	Weight( "None" ),
	Output Table( "log10t" ),
	Std Err( :l10t ),
	Link to original data table(0)
);

Loq = Data Table( "log10t" );


Loq &amp;lt;&amp;lt; column(:Mean(l10t)) &amp;lt;&amp;lt;Format( "Fixed Dec", 12, 4 );

Loq &amp;lt;&amp;lt; column(:Name ("Mean(l10t)")) &amp;lt;&amp;lt; Format( "Fixed Dec", 12, 4 );  

Column(Loq,:Mean(l10t)) &amp;lt;&amp;lt; Set Format ( "Fixed Dec", 12, 4 );&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;so l get a data table using the above syntax, however, the variable Mean(l10t) it produces in the table has 10 decimal places, the next three lines of code are trying to re format to a fixed decimal place of 4, none has worked, could anyone please advise why??&lt;/P&gt;&lt;P&gt;Also when i work with variables in JMP sometimes i can use just :variable name to use the variable, quite often this wont work and i have to use :Name("Variable Name"), why??&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
    <pubDate>Wed, 27 Nov 2019 00:45:58 GMT</pubDate>
    <dc:creator>Mickyboy</dc:creator>
    <dc:date>2019-11-27T00:45:58Z</dc:date>
    <item>
      <title>Changing the format of a variable in a data table</title>
      <link>https://community.jmp.com/t5/Discussions/Changing-the-format-of-a-variable-in-a-data-table/m-p/236628#M46694</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;i have the following syntax:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt2&amp;lt;&amp;lt; Summary(
	Group( :Sample ),
	Mean( :dilution factor, :l10t ),
	Freq( "None" ),
	Weight( "None" ),
	Output Table( "log10t" ),
	Std Err( :l10t ),
	Link to original data table(0)
);

Loq = Data Table( "log10t" );


Loq &amp;lt;&amp;lt; column(:Mean(l10t)) &amp;lt;&amp;lt;Format( "Fixed Dec", 12, 4 );

Loq &amp;lt;&amp;lt; column(:Name ("Mean(l10t)")) &amp;lt;&amp;lt; Format( "Fixed Dec", 12, 4 );  

Column(Loq,:Mean(l10t)) &amp;lt;&amp;lt; Set Format ( "Fixed Dec", 12, 4 );&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;so l get a data table using the above syntax, however, the variable Mean(l10t) it produces in the table has 10 decimal places, the next three lines of code are trying to re format to a fixed decimal place of 4, none has worked, could anyone please advise why??&lt;/P&gt;&lt;P&gt;Also when i work with variables in JMP sometimes i can use just :variable name to use the variable, quite often this wont work and i have to use :Name("Variable Name"), why??&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 27 Nov 2019 00:45:58 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Changing-the-format-of-a-variable-in-a-data-table/m-p/236628#M46694</guid>
      <dc:creator>Mickyboy</dc:creator>
      <dc:date>2019-11-27T00:45:58Z</dc:date>
    </item>
    <item>
      <title>Re: Changing the format of a variable in a data table</title>
      <link>https://community.jmp.com/t5/Discussions/Changing-the-format-of-a-variable-in-a-data-table/m-p/236639#M46696</link>
      <description>&lt;P&gt;Either of these syntax forms will work&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;loq:Name("Mean(l10t)") &amp;lt;&amp;lt; Format( "Fixed Dec", 14, 4 );

column( loq, "Mean(l10t)" ) &amp;lt;&amp;lt; Format( "Fixed Dec", 14, 4 );&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 27 Nov 2019 01:24:35 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Changing-the-format-of-a-variable-in-a-data-table/m-p/236639#M46696</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2019-11-27T01:24:35Z</dc:date>
    </item>
    <item>
      <title>Re: Changing the format of a variable in a data table</title>
      <link>https://community.jmp.com/t5/Discussions/Changing-the-format-of-a-variable-in-a-data-table/m-p/236641#M46698</link>
      <description>&lt;P&gt;thanks Jim, i had tried several bits of code, that worked a treat&lt;/P&gt;</description>
      <pubDate>Wed, 27 Nov 2019 01:34:28 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Changing-the-format-of-a-variable-in-a-data-table/m-p/236641#M46698</guid>
      <dc:creator>Mickyboy</dc:creator>
      <dc:date>2019-11-27T01:34:28Z</dc:date>
    </item>
  </channel>
</rss>

