<?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: JSL for using a column group in a formula in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/JSL-for-using-a-column-group-in-a-formula/m-p/79937#M36853</link>
    <description>&lt;P&gt;Nevemind, figured it out!&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt &amp;lt;&amp;lt; Group Columns ("Weeks", Column (2), 26);
colgrp = dt &amp;lt;&amp;lt; get column group("Weeks");
dt &amp;lt;&amp;lt; New Column ("STDEV", Numeric, Formula (std dev(colgrp)));&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Mon, 22 Oct 2018 18:14:52 GMT</pubDate>
    <dc:creator>PNash</dc:creator>
    <dc:date>2018-10-22T18:14:52Z</dc:date>
    <item>
      <title>JSL for using a column group in a formula</title>
      <link>https://community.jmp.com/t5/Discussions/JSL-for-using-a-column-group-in-a-formula/m-p/79935#M36851</link>
      <description>&lt;P&gt;Hi;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;New to JMP / JSL.&amp;nbsp; I'm trying to add a formula column at the end of a set of data that calculates the STD DEV of the column data.&amp;nbsp; The header data will be variable, so I need a generic assignment of column numbers.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My script is obviously wrong, otherwise I wouldn't be here but this is what I was trying;&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;dt &amp;lt;&amp;lt; Group Columns ("Weeks", Column (2), 26);
dt &amp;lt;&amp;lt; New Column ("STDEV", Characteristic, Formula (std dev("Weeks")));&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any guidance is appreciated!&amp;nbsp; Thanks!&lt;/P&gt;
&lt;P&gt;-Phil&lt;/P&gt;</description>
      <pubDate>Mon, 22 Oct 2018 18:14:15 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JSL-for-using-a-column-group-in-a-formula/m-p/79935#M36851</guid>
      <dc:creator>PNash</dc:creator>
      <dc:date>2018-10-22T18:14:15Z</dc:date>
    </item>
    <item>
      <title>Re: JSL for using a column group in a formula</title>
      <link>https://community.jmp.com/t5/Discussions/JSL-for-using-a-column-group-in-a-formula/m-p/79937#M36853</link>
      <description>&lt;P&gt;Nevemind, figured it out!&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt &amp;lt;&amp;lt; Group Columns ("Weeks", Column (2), 26);
colgrp = dt &amp;lt;&amp;lt; get column group("Weeks");
dt &amp;lt;&amp;lt; New Column ("STDEV", Numeric, Formula (std dev(colgrp)));&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 22 Oct 2018 18:14:52 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JSL-for-using-a-column-group-in-a-formula/m-p/79937#M36853</guid>
      <dc:creator>PNash</dc:creator>
      <dc:date>2018-10-22T18:14:52Z</dc:date>
    </item>
  </channel>
</rss>

