<?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: Function in script to get log of a column in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Function-in-script-to-get-log-of-a-column/m-p/362905#M61269</link>
    <description>&lt;P&gt;Ron's method is definitely my favorite interactive method. If you need to script this, the 3rd line in the script below gives an example--the line before that just makes a table so we have something to work with. This gets a good bit trickier when you don't know the name of the column you're transforming ahead of time. (See "expression handling" in the scripting guide for details.)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);

dt = as table(J(20,1,randomuniform()), &amp;lt;&amp;lt; column names({"X"}));

dt &amp;lt;&amp;lt; new column ("log10x", formula(log10(:x)));
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 25 Feb 2021 22:37:36 GMT</pubDate>
    <dc:creator>brady_brady</dc:creator>
    <dc:date>2021-02-25T22:37:36Z</dc:date>
    <item>
      <title>Function in script to get log of a column</title>
      <link>https://community.jmp.com/t5/Discussions/Function-in-script-to-get-log-of-a-column/m-p/362865#M61263</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I was wondering how I would go about taking the log10 of a few of my columns and then having the data posted.&lt;/P&gt;&lt;P&gt;E.g. For Column X, take the values (Y) and perform log10(Y) and save values under Column X Log&lt;/P&gt;</description>
      <pubDate>Sat, 10 Jun 2023 23:26:31 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Function-in-script-to-get-log-of-a-column/m-p/362865#M61263</guid>
      <dc:creator>SI-2000</dc:creator>
      <dc:date>2023-06-10T23:26:31Z</dc:date>
    </item>
    <item>
      <title>Re: Function in script to get log of a column</title>
      <link>https://community.jmp.com/t5/Discussions/Function-in-script-to-get-log-of-a-column/m-p/362890#M61265</link>
      <description>&lt;P&gt;If I understand you correctly, this is quite easy. &amp;nbsp;Create the new column logX. &amp;nbsp;Create a formula for the column (right click on the column and select &lt;STRONG&gt;Formula&lt;/STRONG&gt;). &amp;nbsp;In the left column select Transcendental and you will see &lt;STRONG&gt;log10&lt;/STRONG&gt; option.&amp;nbsp; Simply put the column you want to transform in the parentheses.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2021-02-25 at 3.29.40 PM.jpg" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/30718iEB93173686581725/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screen Shot 2021-02-25 at 3.29.40 PM.jpg" alt="Screen Shot 2021-02-25 at 3.29.40 PM.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt; &lt;/P&gt;</description>
      <pubDate>Thu, 25 Feb 2021 22:30:23 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Function-in-script-to-get-log-of-a-column/m-p/362890#M61265</guid>
      <dc:creator>statman</dc:creator>
      <dc:date>2021-02-25T22:30:23Z</dc:date>
    </item>
    <item>
      <title>Re: Function in script to get log of a column</title>
      <link>https://community.jmp.com/t5/Discussions/Function-in-script-to-get-log-of-a-column/m-p/362902#M61268</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/24989"&gt;@SI-2000&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;for me the fastest way would be to select the columns you want to transform right click them and follow the menu in the picture: New formula column &amp;gt;&amp;gt; transform &amp;gt;&amp;gt; log&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ron_horne_0-1614292390802.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/30719iDAC21B35FECB72A1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ron_horne_0-1614292390802.png" alt="ron_horne_0-1614292390802.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;you can do that to as many columns you select in one go.&lt;/P&gt;
&lt;P&gt;let us know if it works for you,&lt;/P&gt;
&lt;P&gt;ron&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Feb 2021 22:34:30 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Function-in-script-to-get-log-of-a-column/m-p/362902#M61268</guid>
      <dc:creator>ron_horne</dc:creator>
      <dc:date>2021-02-25T22:34:30Z</dc:date>
    </item>
    <item>
      <title>Re: Function in script to get log of a column</title>
      <link>https://community.jmp.com/t5/Discussions/Function-in-script-to-get-log-of-a-column/m-p/362905#M61269</link>
      <description>&lt;P&gt;Ron's method is definitely my favorite interactive method. If you need to script this, the 3rd line in the script below gives an example--the line before that just makes a table so we have something to work with. This gets a good bit trickier when you don't know the name of the column you're transforming ahead of time. (See "expression handling" in the scripting guide for details.)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);

dt = as table(J(20,1,randomuniform()), &amp;lt;&amp;lt; column names({"X"}));

dt &amp;lt;&amp;lt; new column ("log10x", formula(log10(:x)));
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Feb 2021 22:37:36 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Function-in-script-to-get-log-of-a-column/m-p/362905#M61269</guid>
      <dc:creator>brady_brady</dc:creator>
      <dc:date>2021-02-25T22:37:36Z</dc:date>
    </item>
    <item>
      <title>Re: Function in script to get log of a column</title>
      <link>https://community.jmp.com/t5/Discussions/Function-in-script-to-get-log-of-a-column/m-p/362915#M61271</link>
      <description>&lt;P&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/24989"&gt;@SI-2000&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Your request has been answered by multiple community members.&amp;nbsp; However, I think coming to the community on such a fundamental JMP function will be very efficient for your JMP learning and usage.&amp;nbsp; There are such tools as the &lt;EM&gt;Discovering JMP&lt;/EM&gt; document, JMP tutorials and the &lt;EM&gt;New User Welcome Kit&lt;/EM&gt;&amp;nbsp;that will introduce you to JMP much faster.&amp;nbsp; I encourage you to take the time to explore these items.&amp;nbsp; I believe that will make your entry into the JMP world far more enjoyable.&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;Discovering JMP document is available&amp;nbsp;@&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Help=&amp;gt;Discovering JMP&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;The JMP Tutorials are available&amp;nbsp;@&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Help=&amp;gt;Tutorials=&amp;gt;Beginners Tutorial&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;The Welcome Kit is available&amp;nbsp;@&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Help=&amp;gt;JMP on the Web=&amp;gt;JMP Welcome Kit&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Feb 2021 23:20:33 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Function-in-script-to-get-log-of-a-column/m-p/362915#M61271</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2021-02-25T23:20:33Z</dc:date>
    </item>
  </channel>
</rss>

