<?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: How can I copy a new table data copy with column names to after the last column of another table in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/How-can-I-copy-a-new-table-data-copy-with-column-names-to-after/m-p/69020#M34984</link>
    <description>&lt;P&gt;I'm not sure that putting summary and raw data in the same table is necessarily a good idea. But, if you need to for some reason (and if I have understood correctly), then you can use 'Tables &amp;gt; Join' with 'By Row Number'. In JSL:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );

// First table
dt1 = Open( "$SAMPLE_DATA/Boston Housing.jmp" );

// Summary table
dt2 = dt1 &amp;lt;&amp;lt; Summary(
	Group( :chas, :tax ),
	Mean( :mvalue ),
	Subgroup( :radial ),
	Freq( "None" ),
	Weight( "None" )
);

// Joined table
dt3 = dt1 &amp;lt;&amp;lt; Join( With( dt2 ), By Row Number, Output Table( "Joined Data" ) );&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 21 Aug 2018 14:06:03 GMT</pubDate>
    <dc:creator>ian_jmp</dc:creator>
    <dc:date>2018-08-21T14:06:03Z</dc:date>
    <item>
      <title>How can I copy a new table data copy with column names to after the last column of another table?</title>
      <link>https://community.jmp.com/t5/Discussions/How-can-I-copy-a-new-table-data-copy-with-column-names-to-after/m-p/69004#M34981</link>
      <description>&lt;P&gt;For example, the Boston Housing.jmp Summary calculation produces a new table that wants to copy all the column names and data from the new table to the first row after the last column of Boston Housing.jmp.Thank you very much!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt = Open( "$SAMPLE_DATA/Boston Housing.jmp" );
dt &amp;lt;&amp;lt; Summary(
Group( :chas, :tax ),
Mean( :mvalue ),
Subgroup( :radial ),
Freq( "None" ),
Weight( "None" )
)&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;……？？&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2018-08-22_18-16-24.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/12245i3EF8416C77DE4D9B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="2018-08-22_18-16-24.png" alt="2018-08-22_18-16-24.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Aug 2018 10:16:06 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-can-I-copy-a-new-table-data-copy-with-column-names-to-after/m-p/69004#M34981</guid>
      <dc:creator>lwx228</dc:creator>
      <dc:date>2018-08-30T10:16:06Z</dc:date>
    </item>
    <item>
      <title>Re: How can I copy a new table data copy with column names to after the last column of another table</title>
      <link>https://community.jmp.com/t5/Discussions/How-can-I-copy-a-new-table-data-copy-with-column-names-to-after/m-p/69006#M34982</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2018-08-22_18-16-24.png" style="width: 999px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/12124i4319F14005CC7FA8/image-size/large?v=v2&amp;amp;px=999" role="button" title="2018-08-22_18-16-24.png" alt="2018-08-22_18-16-24.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Aug 2018 10:38:22 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-can-I-copy-a-new-table-data-copy-with-column-names-to-after/m-p/69006#M34982</guid>
      <dc:creator>lwx228</dc:creator>
      <dc:date>2018-08-21T10:38:22Z</dc:date>
    </item>
    <item>
      <title>Re: How can I copy a new table data copy with column names to after the last column of another table</title>
      <link>https://community.jmp.com/t5/Discussions/How-can-I-copy-a-new-table-data-copy-with-column-names-to-after/m-p/69020#M34984</link>
      <description>&lt;P&gt;I'm not sure that putting summary and raw data in the same table is necessarily a good idea. But, if you need to for some reason (and if I have understood correctly), then you can use 'Tables &amp;gt; Join' with 'By Row Number'. In JSL:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );

// First table
dt1 = Open( "$SAMPLE_DATA/Boston Housing.jmp" );

// Summary table
dt2 = dt1 &amp;lt;&amp;lt; Summary(
	Group( :chas, :tax ),
	Mean( :mvalue ),
	Subgroup( :radial ),
	Freq( "None" ),
	Weight( "None" )
);

// Joined table
dt3 = dt1 &amp;lt;&amp;lt; Join( With( dt2 ), By Row Number, Output Table( "Joined Data" ) );&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Aug 2018 14:06:03 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-can-I-copy-a-new-table-data-copy-with-column-names-to-after/m-p/69020#M34984</guid>
      <dc:creator>ian_jmp</dc:creator>
      <dc:date>2018-08-21T14:06:03Z</dc:date>
    </item>
    <item>
      <title>Re: How can I copy a new table data copy with column names to after the last column of another table</title>
      <link>https://community.jmp.com/t5/Discussions/How-can-I-copy-a-new-table-data-copy-with-column-names-to-after/m-p/69022#M34985</link>
      <description>Excellent answer, thank you!</description>
      <pubDate>Tue, 21 Aug 2018 14:11:46 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-can-I-copy-a-new-table-data-copy-with-column-names-to-after/m-p/69022#M34985</guid>
      <dc:creator>lwx228</dc:creator>
      <dc:date>2018-08-21T14:11:46Z</dc:date>
    </item>
    <item>
      <title>Re: How can I copy a new table data copy with column names to after the last column of another table</title>
      <link>https://community.jmp.com/t5/Discussions/How-can-I-copy-a-new-table-data-copy-with-column-names-to-after/m-p/70615#M35248</link>
      <description>&lt;P&gt;Hi Ian,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;this is an interesting topic. Is there away to add the summary data table to the source&amp;nbsp;data table in order to have only one file (script table)?&lt;/P&gt;&lt;P&gt;What JSL must be&amp;nbsp;applied to add the resulting means in one column&amp;nbsp;and the N Rows as well in another column to the source data table?&lt;/P&gt;&lt;P&gt;The main&amp;nbsp;interest here is to keep the summary data results in the origin source data table.&lt;/P&gt;</description>
      <pubDate>Thu, 30 Aug 2018 07:56:28 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-can-I-copy-a-new-table-data-copy-with-column-names-to-after/m-p/70615#M35248</guid>
      <dc:creator>Thomas1</dc:creator>
      <dc:date>2018-08-30T07:56:28Z</dc:date>
    </item>
  </channel>
</rss>

