<?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 Adding new columns to a data table in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Adding-new-columns-to-a-data-table/m-p/56078#M31474</link>
    <description>&lt;P&gt;i create a table and try add two aolumns in jsl as follows:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Test = New Table( "Test" );
Test &amp;lt;&amp;lt; New Column( "Ident", Character, Continuous, Format( "Best", 8 ), set values( identifiers ) );
Test &amp;lt;&amp;lt; New Column( "Value", Numeric, Continuous, Format( "Best", 8 ), set values( values ) );&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;SPAN&gt;identifiers - is a list of caharacters&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;values - a a list of matching numbers.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;using the format above, creates only ident column , populates with values and stops before adding the second column. no report of an error.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;(if i run the command latter manually it adds also Value column and the values.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;if i use a slightly different format (below), no issues and both columns are created and populated with the values:&lt;/SPAN&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Test=new table("Test");
Test&amp;lt;&amp;lt;new column("Value",Numeric,Continuous,format("Best",8),set values(values));
Test&amp;lt;&amp;lt;new column("Ident",Character,Continuous,format("Best",8),set values(identifiers));&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;any explanation to this behavior?&lt;/P&gt;</description>
    <pubDate>Wed, 02 May 2018 15:27:18 GMT</pubDate>
    <dc:creator>njmp</dc:creator>
    <dc:date>2018-05-02T15:27:18Z</dc:date>
    <item>
      <title>Adding new columns to a data table</title>
      <link>https://community.jmp.com/t5/Discussions/Adding-new-columns-to-a-data-table/m-p/56078#M31474</link>
      <description>&lt;P&gt;i create a table and try add two aolumns in jsl as follows:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Test = New Table( "Test" );
Test &amp;lt;&amp;lt; New Column( "Ident", Character, Continuous, Format( "Best", 8 ), set values( identifiers ) );
Test &amp;lt;&amp;lt; New Column( "Value", Numeric, Continuous, Format( "Best", 8 ), set values( values ) );&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;SPAN&gt;identifiers - is a list of caharacters&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;values - a a list of matching numbers.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;using the format above, creates only ident column , populates with values and stops before adding the second column. no report of an error.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;(if i run the command latter manually it adds also Value column and the values.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;if i use a slightly different format (below), no issues and both columns are created and populated with the values:&lt;/SPAN&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Test=new table("Test");
Test&amp;lt;&amp;lt;new column("Value",Numeric,Continuous,format("Best",8),set values(values));
Test&amp;lt;&amp;lt;new column("Ident",Character,Continuous,format("Best",8),set values(identifiers));&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;any explanation to this behavior?&lt;/P&gt;</description>
      <pubDate>Wed, 02 May 2018 15:27:18 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Adding-new-columns-to-a-data-table/m-p/56078#M31474</guid>
      <dc:creator>njmp</dc:creator>
      <dc:date>2018-05-02T15:27:18Z</dc:date>
    </item>
    <item>
      <title>Re: Adding new columns to a data table</title>
      <link>https://community.jmp.com/t5/Discussions/Adding-new-columns-to-a-data-table/m-p/56079#M31475</link>
      <description>&lt;P&gt;A column that has is of&amp;nbsp;Data Type, "Character", can only have a Modeling Type of "Nominal".&amp;nbsp; Also, a Format definition for a Character column can not be specified.&amp;nbsp; The script below is a modification of your script that runs without error&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );

identifiers = {"a", "b", "c"};
values = {1, 2, 3};

Test = New Table( "Test" );
Test &amp;lt;&amp;lt;
New Column( "Ident",
	Character,
	set values( identifiers )
);
Test &amp;lt;&amp;lt;
New Column( "Value",
	Numeric,
	Continuous,
	Format( "Best", 8 ),
	set values( values )
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 29 Apr 2018 10:30:52 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Adding-new-columns-to-a-data-table/m-p/56079#M31475</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2018-04-29T10:30:52Z</dc:date>
    </item>
    <item>
      <title>Re: Adding new columns to a data table</title>
      <link>https://community.jmp.com/t5/Discussions/Adding-new-columns-to-a-data-table/m-p/56080#M31476</link>
      <description>Thanks a lot:)</description>
      <pubDate>Sun, 29 Apr 2018 12:56:58 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Adding-new-columns-to-a-data-table/m-p/56080#M31476</guid>
      <dc:creator>njmp</dc:creator>
      <dc:date>2018-04-29T12:56:58Z</dc:date>
    </item>
    <item>
      <title>Re: Adding new columns to a data table</title>
      <link>https://community.jmp.com/t5/Discussions/Adding-new-columns-to-a-data-table/m-p/255101#M50079</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/2687"&gt;@txnelson&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your help.&amp;nbsp;&lt;/P&gt;&lt;P&gt;2nd file doesn't have Minimum Age Column. How can I create the 2nd column with name "Minimum Age" and then run the above script?&lt;/P&gt;</description>
      <pubDate>Mon, 30 Mar 2020 17:17:27 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Adding-new-columns-to-a-data-table/m-p/255101#M50079</guid>
      <dc:creator>Jackie_</dc:creator>
      <dc:date>2020-03-30T17:17:27Z</dc:date>
    </item>
  </channel>
</rss>

