<?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 batch table transformation: generate vector columns in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/batch-table-transformation-generate-vector-columns/m-p/960649#M110211</link>
    <description>&lt;P&gt;What is the fastest way to generate Vector Columns from a tall table in JMP?&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;
Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/Big Class Families.jmp" );


// Data table summary
// → Data Table( "Summary of Big Class Families grouped by age etc." )
tmp = dt &amp;lt;&amp;lt; Summary( Group( :age, :sex, :height, :weight ) );


// New formula columns
tmp &amp;lt;&amp;lt; New Column( "Rank", Formula( Col Rank( 1, :age, :sex ) ) );

// Split data table
// → Data Table(
//   	"Split of Summary of Big Class Families grouped by age etc. by Rank[age]"
//   )
final = tmp &amp;lt;&amp;lt; Split( Split By( :Rank ), Split( :height, :weight ), Group( :age, :sex ) );

final &amp;lt;&amp;lt; New Column( "heights",
	Expression,
	set each value(
		Matrix( {:height 1, :height 2, :height 3, :height 4, :height 5, :height 6} )
	)
);

final &amp;lt;&amp;lt; New Column( "weights",
	Expression,
	set each value(
		Matrix( {:weight 1, :weight 2, :weight 3, :weight 4, :weight 5, :weight 6} )
	)
);

final &amp;lt;&amp;lt; Delete Columns({:height 1, :height 2, :height 3, :height 4, :height 5, :height 6,:weight 1, :weight 2, :weight 3, :weight 4, :weight 5, :weight 6})&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;NB: I don't need the missing entries.&lt;/P&gt;</description>
    <pubDate>Tue, 21 Jul 2026 16:35:42 GMT</pubDate>
    <dc:creator>hogi</dc:creator>
    <dc:date>2026-07-21T16:35:42Z</dc:date>
    <item>
      <title>batch table transformation: generate vector columns</title>
      <link>https://community.jmp.com/t5/Discussions/batch-table-transformation-generate-vector-columns/m-p/960649#M110211</link>
      <description>&lt;P&gt;What is the fastest way to generate Vector Columns from a tall table in JMP?&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;
Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/Big Class Families.jmp" );


// Data table summary
// → Data Table( "Summary of Big Class Families grouped by age etc." )
tmp = dt &amp;lt;&amp;lt; Summary( Group( :age, :sex, :height, :weight ) );


// New formula columns
tmp &amp;lt;&amp;lt; New Column( "Rank", Formula( Col Rank( 1, :age, :sex ) ) );

// Split data table
// → Data Table(
//   	"Split of Summary of Big Class Families grouped by age etc. by Rank[age]"
//   )
final = tmp &amp;lt;&amp;lt; Split( Split By( :Rank ), Split( :height, :weight ), Group( :age, :sex ) );

final &amp;lt;&amp;lt; New Column( "heights",
	Expression,
	set each value(
		Matrix( {:height 1, :height 2, :height 3, :height 4, :height 5, :height 6} )
	)
);

final &amp;lt;&amp;lt; New Column( "weights",
	Expression,
	set each value(
		Matrix( {:weight 1, :weight 2, :weight 3, :weight 4, :weight 5, :weight 6} )
	)
);

final &amp;lt;&amp;lt; Delete Columns({:height 1, :height 2, :height 3, :height 4, :height 5, :height 6,:weight 1, :weight 2, :weight 3, :weight 4, :weight 5, :weight 6})&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;NB: I don't need the missing entries.&lt;/P&gt;</description>
      <pubDate>Tue, 21 Jul 2026 16:35:42 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/batch-table-transformation-generate-vector-columns/m-p/960649#M110211</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2026-07-21T16:35:42Z</dc:date>
    </item>
    <item>
      <title>Re: batch table transformation: generate vector columns</title>
      <link>https://community.jmp.com/t5/Discussions/batch-table-transformation-generate-vector-columns/m-p/960667#M110212</link>
      <description>&lt;P&gt;My initial guess would be some sort of loop to get matching rows for each of the rows and using data table subscripting to get/set the values.&lt;/P&gt;</description>
      <pubDate>Tue, 21 Jul 2026 17:55:58 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/batch-table-transformation-generate-vector-columns/m-p/960667#M110212</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2026-07-21T17:55:58Z</dc:date>
    </item>
  </channel>
</rss>

