<?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: evaluating a string using a column formula? in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/evaluating-a-string-using-a-column-formula/m-p/206933#M41814</link>
    <description>&lt;P&gt;First time I've used this after almost 20 years of using JMP! If only I'd been aware of this before!&lt;/P&gt;</description>
    <pubDate>Sun, 12 May 2019 06:29:22 GMT</pubDate>
    <dc:creator>derekc</dc:creator>
    <dc:date>2019-05-12T06:29:22Z</dc:date>
    <item>
      <title>evaluating a string using a column formula?</title>
      <link>https://community.jmp.com/t5/Discussions/evaluating-a-string-using-a-column-formula/m-p/38028#M22266</link>
      <description>&lt;P&gt;I have a column with strings, e.g. &amp;nbsp;20.5 + 1.18*1.61 - 0.0816*(1.61-1.85)^2 , and I would like to evaluate its value in a different column. I tried using eval() with the name of the column with the strings as argument, but it did not work: I simply get the string again, not the value of that string.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am sure the strings can be evaluated, because I tried eval(20.5 + 1.18*1.61 - 0.0816*(1.61-1.85)^2&amp;nbsp;) and it&amp;nbsp;gave me a number as expected.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is it possible to use a function to evaluate a column, and if so how? I am not looking for a JSL solution.&lt;/P&gt;</description>
      <pubDate>Wed, 12 Apr 2017 14:32:07 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/evaluating-a-string-using-a-column-formula/m-p/38028#M22266</guid>
      <dc:creator>jvillaumie</dc:creator>
      <dc:date>2017-04-12T14:32:07Z</dc:date>
    </item>
    <item>
      <title>Re: evaluating a string using a column formula?</title>
      <link>https://community.jmp.com/t5/Discussions/evaluating-a-string-using-a-column-formula/m-p/38029#M22267</link>
      <description>&lt;P&gt;Eval() works on your expression in a script editor because it's not a string there. In the column, it's a string. First you need to parse the string (which converts a string into a JSL expression), and then eval it. Try this for&amp;nbsp;your column formula (Column 1 is the one with your strings):&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Eval( Parse( :Column 1 ) )&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 12 Apr 2017 14:37:06 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/evaluating-a-string-using-a-column-formula/m-p/38029#M22267</guid>
      <dc:creator>Melanie_J_Drake</dc:creator>
      <dc:date>2017-04-12T14:37:06Z</dc:date>
    </item>
    <item>
      <title>Re: evaluating a string using a column formula?</title>
      <link>https://community.jmp.com/t5/Discussions/evaluating-a-string-using-a-column-formula/m-p/38030#M22268</link>
      <description>&lt;P&gt;That worked; thanks for the quick reply&lt;/P&gt;</description>
      <pubDate>Wed, 12 Apr 2017 14:42:10 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/evaluating-a-string-using-a-column-formula/m-p/38030#M22268</guid>
      <dc:creator>jvillaumie</dc:creator>
      <dc:date>2017-04-12T14:42:10Z</dc:date>
    </item>
    <item>
      <title>Re: evaluating a string using a column formula?</title>
      <link>https://community.jmp.com/t5/Discussions/evaluating-a-string-using-a-column-formula/m-p/206933#M41814</link>
      <description>&lt;P&gt;First time I've used this after almost 20 years of using JMP! If only I'd been aware of this before!&lt;/P&gt;</description>
      <pubDate>Sun, 12 May 2019 06:29:22 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/evaluating-a-string-using-a-column-formula/m-p/206933#M41814</guid>
      <dc:creator>derekc</dc:creator>
      <dc:date>2019-05-12T06:29:22Z</dc:date>
    </item>
  </channel>
</rss>

