<?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 Why is it this doesn't work? in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Why-is-it-this-doesn-t-work/m-p/3609#M3609</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I use the column function instead:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: #0000dd; font-size: 10pt;"&gt;column&lt;/SPAN&gt;&lt;STRONG style="color: black; font-size: 10pt; font-family: 'Courier New';"&gt;(&lt;/STRONG&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 10pt;"&gt;str&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For clarity I include the dataset name as well:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: #0000dd; font-size: 10pt;"&gt;column&lt;/SPAN&gt;&lt;STRONG style="color: black; font-size: 10pt; font-family: 'Courier New';"&gt;(&lt;/STRONG&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 10pt;"&gt;dt&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: navy; font-size: 10pt;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 10pt;"&gt; str&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sometimes I've needed to use the &lt;STRONG&gt;as column&lt;/STRONG&gt; function.&amp;nbsp; Not sure if it applies here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 02 Aug 2011 20:45:16 GMT</pubDate>
    <dc:creator>pmroz</dc:creator>
    <dc:date>2011-08-02T20:45:16Z</dc:date>
    <item>
      <title>Why is it this doesn't work?</title>
      <link>https://community.jmp.com/t5/Discussions/Why-is-it-this-doesn-t-work/m-p/3608#M3608</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;:Name("COLUMN_NAME+WITH-CHARACTERS")&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OK&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;str = "COLUMN_NAME+WITH-CHARACTERS"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;:Name(str)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Error: Name arg must be quoted string&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The only way I've gotten this to work is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;eval(parse(":Name(\!""||str||"\!")"))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;which is absurd&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Aug 2011 18:04:49 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Why-is-it-this-doesn-t-work/m-p/3608#M3608</guid>
      <dc:creator />
      <dc:date>2011-08-02T18:04:49Z</dc:date>
    </item>
    <item>
      <title>Why is it this doesn't work?</title>
      <link>https://community.jmp.com/t5/Discussions/Why-is-it-this-doesn-t-work/m-p/3609#M3609</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I use the column function instead:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: #0000dd; font-size: 10pt;"&gt;column&lt;/SPAN&gt;&lt;STRONG style="color: black; font-size: 10pt; font-family: 'Courier New';"&gt;(&lt;/STRONG&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 10pt;"&gt;str&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For clarity I include the dataset name as well:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: #0000dd; font-size: 10pt;"&gt;column&lt;/SPAN&gt;&lt;STRONG style="color: black; font-size: 10pt; font-family: 'Courier New';"&gt;(&lt;/STRONG&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 10pt;"&gt;dt&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: navy; font-size: 10pt;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 10pt;"&gt; str&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sometimes I've needed to use the &lt;STRONG&gt;as column&lt;/STRONG&gt; function.&amp;nbsp; Not sure if it applies here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Aug 2011 20:45:16 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Why-is-it-this-doesn-t-work/m-p/3609#M3609</guid>
      <dc:creator>pmroz</dc:creator>
      <dc:date>2011-08-02T20:45:16Z</dc:date>
    </item>
    <item>
      <title>Why is it this doesn't work?</title>
      <link>https://community.jmp.com/t5/Discussions/Why-is-it-this-doesn-t-work/m-p/3610#M3610</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you also add some info on the usage of "As Column"? I am trying to pass a column name as a variable to the Split Table function, and I think the "As Column" function will help me do this. What I am trying looks something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;columnname = "data1"; // assume there are multiple columns of data like this, data2, data3, etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Current&amp;nbsp; Data Table () &amp;lt;&amp;lt; Split ( Split By (:DAY) ), Split (columnname) .... ); &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think I need something like an As Column (columnname); statement in there... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Suggestions?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Charles&lt;/P&gt;&lt;DIV class="mcePaste" id="_mcePaste" style="position: absolute; width: 1px; height: 1px; overflow: hidden; top: 0px; left: -10000px;"&gt;﻿&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Aug 2011 23:19:00 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Why-is-it-this-doesn-t-work/m-p/3610#M3610</guid>
      <dc:creator>ccp</dc:creator>
      <dc:date>2011-08-03T23:19:00Z</dc:date>
    </item>
    <item>
      <title>Why is it this doesn't work?</title>
      <link>https://community.jmp.com/t5/Discussions/Why-is-it-this-doesn-t-work/m-p/3611#M3611</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm not sure why you need COLUMN vs AS COLUMN.&amp;nbsp; It seems to clarify things for JMP.&amp;nbsp; I mostly use the COLUMN function, but I needed to use the AS COLUMN function in a where clause:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 10pt;"&gt;one_dme &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: navy; font-size: 10pt;"&gt;=&lt;/SPAN&gt; &lt;SPAN style="font-family: 'Courier New'; color: purple; font-size: 10pt;"&gt;"Electrolysis"&lt;/SPAN&gt;;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 10pt;"&gt;tmp_matrix &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: navy; font-size: 10pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 10pt;"&gt; dmt &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: navy; font-size: 10pt;"&gt;&amp;lt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 10pt;"&gt; get rows where&lt;STRONG&gt;(&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: navy; font-size: 10pt;"&gt;:&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 10pt;"&gt;Time Period &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: navy; font-size: 10pt;"&gt;==&lt;/SPAN&gt; &lt;SPAN style="font-family: 'Courier New'; color: purple; font-size: 10pt;"&gt;"Current"&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: navy; font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;amp;&lt;/SPAN&gt; &lt;SPAN style="font-family: 'Courier New'; color: #0000dd; font-size: 10pt;"&gt;as column&lt;/SPAN&gt;&lt;STRONG style="color: black; font-size: 10pt; font-family: 'Courier New';"&gt;(&lt;/STRONG&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 10pt;"&gt;dmt&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: navy; font-size: 10pt;"&gt;,&lt;/SPAN&gt; &lt;SPAN style="font-family: 'Courier New'; color: #0000dd; font-size: 10pt;"&gt;eval&lt;/SPAN&gt;&lt;STRONG style="color: black; font-size: 10pt; font-family: 'Courier New';"&gt;(&lt;/STRONG&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 10pt;"&gt;one_dme&lt;STRONG&gt;))&lt;/STRONG&gt; &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: navy; font-size: 10pt;"&gt;==&lt;/SPAN&gt; &lt;STRONG&gt;&lt;SPAN style="font-family: 'Courier New'; color: teal; font-size: 10pt;"&gt;1&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 10pt;"&gt;)&lt;/SPAN&gt;&lt;/STRONG&gt;;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Aug 2011 12:59:27 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Why-is-it-this-doesn-t-work/m-p/3611#M3611</guid>
      <dc:creator>pmroz</dc:creator>
      <dc:date>2011-08-04T12:59:27Z</dc:date>
    </item>
    <item>
      <title>Why is it this doesn't work?</title>
      <link>https://community.jmp.com/t5/Discussions/Why-is-it-this-doesn-t-work/m-p/3612#M3612</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; @PMroz&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help. I could not get As Column to do anything for me, but your use of "eval" got me thinking, and I was able to get this syntax to work:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;columnname = "data1"; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Current&amp;nbsp; Data Table () &amp;lt;&amp;lt; Split ( Split By (:DAY) ), Split (&lt;STRONG&gt;eval&lt;/STRONG&gt;(columnname)) .... ); &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Charles&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Aug 2011 15:40:32 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Why-is-it-this-doesn-t-work/m-p/3612#M3612</guid>
      <dc:creator>ccp</dc:creator>
      <dc:date>2011-08-04T15:40:32Z</dc:date>
    </item>
    <item>
      <title>Why is it this doesn't work?</title>
      <link>https://community.jmp.com/t5/Discussions/Why-is-it-this-doesn-t-work/m-p/3613#M3613</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;FYI, Name() isn't a real function (despite the way it looks); it's a quoting mechanism handled by the parser. If you really want to create a name at run-time, use the As Name() function.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Aug 2011 13:48:12 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Why-is-it-this-doesn-t-work/m-p/3613#M3613</guid>
      <dc:creator>XanGregg</dc:creator>
      <dc:date>2011-08-08T13:48:12Z</dc:date>
    </item>
  </channel>
</rss>

