<?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: Concatenate from subset data table in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Concatenate-from-subset-data-table/m-p/433499#M68323</link>
    <description>&lt;P&gt;Hi &lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/16644"&gt;@UserID16644&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;try the followoing script see if it behaves well&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;// Open Data Table: Big Class.jmp
Open( "$SAMPLE_DATA/Big Class.jmp" );

// Select matching cells
Data Table( "Big Class" ) &amp;lt;&amp;lt; Select Where( :sex == "F" );

// Subset data table
// → Data Table( "Subset of Big Class" )
Data Table( "Big Class" ) &amp;lt;&amp;lt; Select Where( :sex == "F" ) &amp;lt;&amp;lt;
Subset( Selected Rows( 1 ), Selected columns only( 0 ) );


// Concatenate tables
Data Table( "Big Class" ) &amp;lt;&amp;lt; Concatenate(
	Data Table( "Subset of Big Class" ),
	Append to first table
);
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;if it is well behaved try to understand what are the differences from the other results.&lt;/P&gt;
&lt;P&gt;the only time i get new columns created using concatenate is when column names do not match.&lt;/P&gt;
&lt;P&gt;let us know if it works.&lt;/P&gt;
&lt;P&gt;ron&lt;/P&gt;</description>
    <pubDate>Fri, 05 Nov 2021 11:42:12 GMT</pubDate>
    <dc:creator>ron_horne</dc:creator>
    <dc:date>2021-11-05T11:42:12Z</dc:date>
    <item>
      <title>Concatenate from subset data table</title>
      <link>https://community.jmp.com/t5/Discussions/Concatenate-from-subset-data-table/m-p/433393#M68311</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I am trying to concatenate data (dt1)&amp;nbsp; from my subset tables (e.g subset by gender)&amp;nbsp;&lt;/P&gt;&lt;P&gt;dt1 also has a column name gender. However, when I try to concatenate the subset data into dt1, it kept on creating another column (gender, gender1, gender2) where the data from the subset tables are placed and not on the gender column on dt1.&lt;/P&gt;&lt;P&gt;How can I concatenate data from subset tables to the specified column?&lt;/P&gt;</description>
      <pubDate>Sat, 10 Jun 2023 23:40:03 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Concatenate-from-subset-data-table/m-p/433393#M68311</guid>
      <dc:creator>UserID16644</dc:creator>
      <dc:date>2023-06-10T23:40:03Z</dc:date>
    </item>
    <item>
      <title>Re: Concatenate from subset data table</title>
      <link>https://community.jmp.com/t5/Discussions/Concatenate-from-subset-data-table/m-p/433418#M68316</link>
      <description>&lt;P&gt;Is Tables -&amp;gt; Update -&amp;gt; Match Columns able to achieve what you're trying to do?&lt;/P&gt;</description>
      <pubDate>Fri, 05 Nov 2021 03:00:42 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Concatenate-from-subset-data-table/m-p/433418#M68316</guid>
      <dc:creator>markschwab</dc:creator>
      <dc:date>2021-11-05T03:00:42Z</dc:date>
    </item>
    <item>
      <title>Re: Concatenate from subset data table</title>
      <link>https://community.jmp.com/t5/Discussions/Concatenate-from-subset-data-table/m-p/433485#M68320</link>
      <description>&lt;P&gt;Nope. Im trying to concatenate data from my subset table&lt;/P&gt;</description>
      <pubDate>Fri, 05 Nov 2021 09:51:48 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Concatenate-from-subset-data-table/m-p/433485#M68320</guid>
      <dc:creator>UserID16644</dc:creator>
      <dc:date>2021-11-05T09:51:48Z</dc:date>
    </item>
    <item>
      <title>Re: Concatenate from subset data table</title>
      <link>https://community.jmp.com/t5/Discussions/Concatenate-from-subset-data-table/m-p/433499#M68323</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/16644"&gt;@UserID16644&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;try the followoing script see if it behaves well&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;// Open Data Table: Big Class.jmp
Open( "$SAMPLE_DATA/Big Class.jmp" );

// Select matching cells
Data Table( "Big Class" ) &amp;lt;&amp;lt; Select Where( :sex == "F" );

// Subset data table
// → Data Table( "Subset of Big Class" )
Data Table( "Big Class" ) &amp;lt;&amp;lt; Select Where( :sex == "F" ) &amp;lt;&amp;lt;
Subset( Selected Rows( 1 ), Selected columns only( 0 ) );


// Concatenate tables
Data Table( "Big Class" ) &amp;lt;&amp;lt; Concatenate(
	Data Table( "Subset of Big Class" ),
	Append to first table
);
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;if it is well behaved try to understand what are the differences from the other results.&lt;/P&gt;
&lt;P&gt;the only time i get new columns created using concatenate is when column names do not match.&lt;/P&gt;
&lt;P&gt;let us know if it works.&lt;/P&gt;
&lt;P&gt;ron&lt;/P&gt;</description>
      <pubDate>Fri, 05 Nov 2021 11:42:12 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Concatenate-from-subset-data-table/m-p/433499#M68323</guid>
      <dc:creator>ron_horne</dc:creator>
      <dc:date>2021-11-05T11:42:12Z</dc:date>
    </item>
  </channel>
</rss>

