<?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: In JSL having trouble adding a new column to a newly transposed datatable in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/In-JSL-having-trouble-adding-a-new-column-to-a-newly-transposed/m-p/7733#M7727</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, that should work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(Sorry, I've edited my confusing typos in previous post)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 13 Nov 2013 09:09:10 GMT</pubDate>
    <dc:creator>ms</dc:creator>
    <dc:date>2013-11-13T09:09:10Z</dc:date>
    <item>
      <title>In JSL having trouble adding a new column to a newly transposed datatable</title>
      <link>https://community.jmp.com/t5/Discussions/In-JSL-having-trouble-adding-a-new-column-to-a-newly-transposed/m-p/7729#M7723</link>
      <description>&lt;P&gt;Here is the complete log&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;STRONG&gt;Log output:&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;Column not found in access or evaluation of 'Bad Argument'
 
Send Expects Scriptable Object in access or evaluation of 'Send' , dt_3 &amp;lt;&amp;lt; New Column( "Dev", Character, Nominal, "Source" )
 
In the following script, error marked by /*###*/
dt_1 = Current Data Table();
cc = dt_1 &amp;lt;&amp;lt; Get Column Names;
cc[3] &amp;lt;&amp;lt; Set Selected( 1 );
For( i = 36, i &amp;lt;= 58, i++,
  cc &amp;lt;&amp;lt; Set Selected( 1 )
);
dt_2 = dt_1 &amp;lt;&amp;lt; Subset( Selected, Output Table Name( "I_tmp" ) );
cc = dt_2 &amp;lt;&amp;lt; Get Column Names;
ncols = N Items( cc );
For( i = 2, i &amp;lt;= ncols, i++,
  cc &amp;lt;&amp;lt; Set Selected( 1 )
);
dt_3 = dt_2 &amp;lt;&amp;lt; Transpose(
  columns( Selected ),
  By( :Column 1 ),
  Output Table Name( "I" )
);
dt_3 &amp;lt;&amp;lt; /*###*/New Column( "Dev", Character, Nominal, "Source" ) /*###*/;
{}&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Apr 2018 19:01:25 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/In-JSL-having-trouble-adding-a-new-column-to-a-newly-transposed/m-p/7729#M7723</guid>
      <dc:creator>shankyjain</dc:creator>
      <dc:date>2018-04-24T19:01:25Z</dc:date>
    </item>
    <item>
      <title>Re: In JSL having trouble adding a new column to a newly transposed datatable</title>
      <link>https://community.jmp.com/t5/Discussions/In-JSL-having-trouble-adding-a-new-column-to-a-newly-transposed/m-p/7730#M7724</link>
      <description>&lt;P&gt;Found Partial Answer: Had to change columns(Selected) to (Selected) in&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt_3 = dt_2 &amp;lt;&amp;lt; Transpose(
columns( Selected ),
By( :Column 1 ),
Output Table Name( "I" )
);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;But, my way referring to first column as :Column 1 in By() is not working. Is there as way to refer to columns by say first, second rather than their actual names?&lt;/P&gt;</description>
      <pubDate>Tue, 24 Apr 2018 19:02:31 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/In-JSL-having-trouble-adding-a-new-column-to-a-newly-transposed/m-p/7730#M7724</guid>
      <dc:creator>shankyjain</dc:creator>
      <dc:date>2018-04-24T19:02:31Z</dc:date>
    </item>
    <item>
      <title>Re: In JSL having trouble adding a new column to a newly transposed datatable</title>
      <link>https://community.jmp.com/t5/Discussions/In-JSL-having-trouble-adding-a-new-column-to-a-newly-transposed/m-p/7731#M7725</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;:Column 1 refers to Column("Column 1") whereas Column(1) refers to the first column. Column(dt_3, 1) refers to the first column in data table dt_3.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Nov 2013 08:20:45 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/In-JSL-having-trouble-adding-a-new-column-to-a-newly-transposed/m-p/7731#M7725</guid>
      <dc:creator>ms</dc:creator>
      <dc:date>2013-11-13T08:20:45Z</dc:date>
    </item>
    <item>
      <title>Re: In JSL having trouble adding a new column to a newly transposed datatable</title>
      <link>https://community.jmp.com/t5/Discussions/In-JSL-having-trouble-adding-a-new-column-to-a-newly-transposed/m-p/7732#M7726</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Column(1) refers to first column in table you mean, then i can give Transpose(columns(1,5,8), By(column(4))..... right?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Nov 2013 08:23:48 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/In-JSL-having-trouble-adding-a-new-column-to-a-newly-transposed/m-p/7732#M7726</guid>
      <dc:creator>shankyjain</dc:creator>
      <dc:date>2013-11-13T08:23:48Z</dc:date>
    </item>
    <item>
      <title>Re: In JSL having trouble adding a new column to a newly transposed datatable</title>
      <link>https://community.jmp.com/t5/Discussions/In-JSL-having-trouble-adding-a-new-column-to-a-newly-transposed/m-p/7733#M7727</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, that should work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(Sorry, I've edited my confusing typos in previous post)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Nov 2013 09:09:10 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/In-JSL-having-trouble-adding-a-new-column-to-a-newly-transposed/m-p/7733#M7727</guid>
      <dc:creator>ms</dc:creator>
      <dc:date>2013-11-13T09:09:10Z</dc:date>
    </item>
  </channel>
</rss>

