<?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: Calling column from column list in formula in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Calling-column-from-column-list-in-formula/m-p/464266#M70879</link>
    <description>&lt;P&gt;I'm fairly sure this post will help you solve the problem &lt;LI-MESSAGE title="Insert one expression into another using Eval Insert, Eval Expr, Parse, and Substitute" uid="48998" url="https://community.jmp.com/t5/JSL-Cookbook/Insert-one-expression-into-another-using-Eval-Insert-Eval-Expr/m-p/48998#U48998" discussion_style_icon_css="lia-mention-container-editor-message lia-img-icon-tkb-thread lia-fa-icon lia-fa-tkb lia-fa-thread lia-fa"&gt;&lt;/LI-MESSAGE&gt; .&lt;/P&gt;</description>
    <pubDate>Fri, 25 Feb 2022 09:07:38 GMT</pubDate>
    <dc:creator>jthi</dc:creator>
    <dc:date>2022-02-25T09:07:38Z</dc:date>
    <item>
      <title>Calling column from column list in formula</title>
      <link>https://community.jmp.com/t5/Discussions/Calling-column-from-column-list-in-formula/m-p/464246#M70878</link>
      <description>&lt;P&gt;I'm quite sure I will feel stupid after seeing the answers but I currently have a brain hang up.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to refer to a column from a list of columns in a new formula in JSL (for later looping over the list).&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 = Open("$SAMPLE_DATA/Big Class.jmp");

mylist= dt&amp;lt;&amp;lt; Get Column Names();

dt &amp;lt;&amp;lt; New Column( "myCol",
	Numeric,
	"Continuous",
	Format( "Best", 12 ),
	Formula(:height * mylist[1] )
);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;mylist[1] should later be the first column of the column list. I'm guessing I should wrap the list reference in an Expr() or Eval Expr(), but the functioning syntax escapes me at the moment.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jun 2023 18:11:31 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Calling-column-from-column-list-in-formula/m-p/464246#M70878</guid>
      <dc:creator>Feli</dc:creator>
      <dc:date>2023-06-09T18:11:31Z</dc:date>
    </item>
    <item>
      <title>Re: Calling column from column list in formula</title>
      <link>https://community.jmp.com/t5/Discussions/Calling-column-from-column-list-in-formula/m-p/464266#M70879</link>
      <description>&lt;P&gt;I'm fairly sure this post will help you solve the problem &lt;LI-MESSAGE title="Insert one expression into another using Eval Insert, Eval Expr, Parse, and Substitute" uid="48998" url="https://community.jmp.com/t5/JSL-Cookbook/Insert-one-expression-into-another-using-Eval-Insert-Eval-Expr/m-p/48998#U48998" discussion_style_icon_css="lia-mention-container-editor-message lia-img-icon-tkb-thread lia-fa-icon lia-fa-tkb lia-fa-thread lia-fa"&gt;&lt;/LI-MESSAGE&gt; .&lt;/P&gt;</description>
      <pubDate>Fri, 25 Feb 2022 09:07:38 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Calling-column-from-column-list-in-formula/m-p/464266#M70879</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2022-02-25T09:07:38Z</dc:date>
    </item>
    <item>
      <title>Re: Calling column from column list in formula</title>
      <link>https://community.jmp.com/t5/Discussions/Calling-column-from-column-list-in-formula/m-p/464268#M70880</link>
      <description>&lt;P&gt;The substitute was exactly was I was looking for, thank you!&lt;/P&gt;</description>
      <pubDate>Fri, 25 Feb 2022 09:31:25 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Calling-column-from-column-list-in-formula/m-p/464268#M70880</guid>
      <dc:creator>Feli</dc:creator>
      <dc:date>2022-02-25T09:31:25Z</dc:date>
    </item>
  </channel>
</rss>

