<?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: Transfer columns with values to a new table in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Transfer-columns-with-values-to-a-new-table/m-p/43156#M24986</link>
    <description>&lt;P&gt;I always start by thinking of how I would do this interactively and then get the script from the resulting data table.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To create a new data table with only a some&amp;nbsp;columns of an existing one, I'd use Tables -&amp;gt; Subset.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If wanted to copy those&amp;nbsp;columns to&amp;nbsp;another existing data table I'd use Tables-&amp;gt;Join.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 12 Aug 2017 13:47:45 GMT</pubDate>
    <dc:creator>Jeff_Perkinson</dc:creator>
    <dc:date>2017-08-12T13:47:45Z</dc:date>
    <item>
      <title>Transfer columns with values to a new table</title>
      <link>https://community.jmp.com/t5/Discussions/Transfer-columns-with-values-to-a-new-table/m-p/43119#M24974</link>
      <description>&lt;P&gt;Please will you help me with this script. I'm trying to transfer a column full of items/values (some characters and Numerics) from an old table to a new table and this scripts is not fully working. I'm propably missing something. I'm sorry I'm new to JMP.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;DATAtwo&lt;/FONT&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;=&lt;/FONT&gt;&lt;FONT color="#0000dd" face="Courier New" size="3"&gt;Data Table&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT face="Courier New" size="3"&gt;(&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;"Results Extract"&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT face="Courier New" size="3"&gt;)&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;testid &lt;/FONT&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;=&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; DATAtwo&lt;/FONT&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;:&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;column3 &lt;/FONT&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&amp;lt;&amp;lt;&lt;/FONT&gt; &lt;STRONG&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;Get Values&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;;&lt;/FONT&gt; &lt;FONT color="#008000" face="Courier New" size="3"&gt;// Test&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;trans &lt;/FONT&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;=&lt;/FONT&gt;&lt;FONT color="#0000dd" face="Courier New" size="3"&gt;Column&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT face="Courier New" size="3"&gt;(&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt;testid&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;　&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;dtfour &lt;/FONT&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&amp;lt;&amp;lt;&lt;/FONT&gt; &lt;STRONG&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;New Column&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;(&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT color="#800080" face="Courier New" size="3"&gt;"key"&lt;/FONT&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;,&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; formula&lt;STRONG&gt;(&lt;/STRONG&gt; trans&lt;STRONG&gt;[&lt;/STRONG&gt;dtfour&lt;/FONT&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;:&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;column6&lt;STRONG&gt;]&lt;/STRONG&gt; &lt;STRONG&gt;)&lt;/STRONG&gt; &lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Aug 2017 15:23:43 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Transfer-columns-with-values-to-a-new-table/m-p/43119#M24974</guid>
      <dc:creator>IrisK</dc:creator>
      <dc:date>2017-08-11T15:23:43Z</dc:date>
    </item>
    <item>
      <title>Re: Transfer columns with values to a new table</title>
      <link>https://community.jmp.com/t5/Discussions/Transfer-columns-with-values-to-a-new-table/m-p/43140#M24978</link>
      <description>&lt;P&gt;Here is an example of how to do what you are looking for:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA\Big Class.jmp" );

MyNames = dt:Name &amp;lt;&amp;lt; get values;

dt2 = New Table( "new",
	New Column( "TheNames", character, values( MyNames ) ),
	New Column( "TheAges", values( dt:age &amp;lt;&amp;lt; get values ) )
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 11 Aug 2017 22:40:16 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Transfer-columns-with-values-to-a-new-table/m-p/43140#M24978</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2017-08-11T22:40:16Z</dc:date>
    </item>
    <item>
      <title>Re: Transfer columns with values to a new table</title>
      <link>https://community.jmp.com/t5/Discussions/Transfer-columns-with-values-to-a-new-table/m-p/43156#M24986</link>
      <description>&lt;P&gt;I always start by thinking of how I would do this interactively and then get the script from the resulting data table.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To create a new data table with only a some&amp;nbsp;columns of an existing one, I'd use Tables -&amp;gt; Subset.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If wanted to copy those&amp;nbsp;columns to&amp;nbsp;another existing data table I'd use Tables-&amp;gt;Join.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 12 Aug 2017 13:47:45 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Transfer-columns-with-values-to-a-new-table/m-p/43156#M24986</guid>
      <dc:creator>Jeff_Perkinson</dc:creator>
      <dc:date>2017-08-12T13:47:45Z</dc:date>
    </item>
  </channel>
</rss>

