<?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 to seperate columns into different tables. in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/How-to-seperate-columns-into-different-tables/m-p/398266#M64912</link>
    <description>&lt;P&gt;The documentation in the JMP 13 Scripting Guide is not very helpful, but it does point to the Scripting Index&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Subset a Data Table&lt;/STRONG&gt;&lt;BR /&gt;Subset() creates a new data table from rows that you specify. If you specify no rows, Subset&lt;BR /&gt;uses the selected rows. If no rows are selected or specified, it uses all rows. If no columns are &lt;BR /&gt;selected or specified, it uses all columns. And if Subset has no arguments, the Subset window &lt;BR /&gt;appears.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt &amp;lt;&amp;lt; Subset(
     Columns( columns ),
     Rows( row matrix ),
     Linked,
     Output Table Name( "name" ),
     Copy Formula( 1 or 0 ),
     Sampling rate( n ),
     Suppress Formula Evaluation( 1 or 0 ) );&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Note: For more arguments, see the Scripting Index in the Help menu.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 04 Jul 2021 13:28:14 GMT</pubDate>
    <dc:creator>txnelson</dc:creator>
    <dc:date>2021-07-04T13:28:14Z</dc:date>
    <item>
      <title>How to seperate columns into different tables.</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-seperate-columns-into-different-tables/m-p/398179#M64898</link>
      <description>&lt;P&gt;I have a datatable with 5 columns. Field names are from from A to Z. Now i want to seperate this table into 5 si gnetables. Every table just contain one column. The table A has one column A. Until the table E ha e one column Z. Can you give me suggestion on JSL?&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jun 2023 19:51:34 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-seperate-columns-into-different-tables/m-p/398179#M64898</guid>
      <dc:creator>GoodMan</dc:creator>
      <dc:date>2023-06-09T19:51:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to seperate columns into different tables.</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-seperate-columns-into-different-tables/m-p/398185#M64900</link>
      <description>&lt;P&gt;Here is a script that illustrates how to do this.&amp;nbsp; I strongly suggest that you take the time to read the Scripting Guide from the JMP Documentation Library, available under the Help pull down menu.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
// Open Data Table: big class.jmp
// → Data Table( "big class" )
dt = Open( "$SAMPLE_DATA/big class.jmp" );

// Loop across each column, selecting it and then subsetting
// the data table with all rows and just the selected column
For( i = 1, i &amp;lt;= N Cols( dt ), i++,
	dt &amp;lt;&amp;lt; select columns( Column( dt, i ) );
	dt &amp;lt;&amp;lt; subset( selected rows( 0 ), selected columns( 1 ) );
	wait(0);
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 04 Jul 2021 04:59:08 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-seperate-columns-into-different-tables/m-p/398185#M64900</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2021-07-04T04:59:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to seperate columns into different tables.</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-seperate-columns-into-different-tables/m-p/398196#M64901</link>
      <description>&lt;P&gt;Thank you for giving me good suggestion. I will take time to read the guide. I tried your scrip with big class datatable. However it seems to bring back 5 the same tables with 5 columns. Can you help me why? My purpose is to get one col for every table from A to E.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 04 Jul 2021 06:26:24 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-seperate-columns-into-different-tables/m-p/398196#M64901</guid>
      <dc:creator>GoodMan</dc:creator>
      <dc:date>2021-07-04T06:26:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to seperate columns into different tables.</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-seperate-columns-into-different-tables/m-p/398210#M64903</link>
      <description>&lt;P&gt;I assume the issue is that you are running version 13 or older.&amp;nbsp; The Select Columns() function did not exist prior to JMP 14.&amp;nbsp; Here is a different approach that does work.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
// Open Data Table: big class.jmp
// → Data Table( "big class" )
dt = Open( "$SAMPLE_DATA/big class.jmp" );

// Loop across each column, specifying a single column on 
// each iteration
For( i = 1, i &amp;lt;= N Cols( dt ), i++,
	dt &amp;lt;&amp;lt; subset( selected rows(0), columns(column(dt,i)));
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 04 Jul 2021 08:16:18 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-seperate-columns-into-different-tables/m-p/398210#M64903</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2021-07-04T08:16:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to seperate columns into different tables.</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-seperate-columns-into-different-tables/m-p/398245#M64907</link>
      <description>&lt;P&gt;Thank you for the explaination. Now it works well.&amp;nbsp;Can you give me a link or pages of guide so that i go to check selected row(0). I can not find here.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 04 Jul 2021 09:56:01 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-seperate-columns-into-different-tables/m-p/398245#M64907</guid>
      <dc:creator>GoodMan</dc:creator>
      <dc:date>2021-07-04T09:56:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to seperate columns into different tables.</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-seperate-columns-into-different-tables/m-p/398257#M64909</link>
      <description>What version of JMP are you using?&lt;BR /&gt;I would examine the entry in the Scripting Index.  Look for the Subset</description>
      <pubDate>Sun, 04 Jul 2021 12:36:05 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-seperate-columns-into-different-tables/m-p/398257#M64909</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2021-07-04T12:36:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to seperate columns into different tables.</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-seperate-columns-into-different-tables/m-p/398265#M64911</link>
      <description>Thank you. I am using 13.</description>
      <pubDate>Sun, 04 Jul 2021 13:16:04 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-seperate-columns-into-different-tables/m-p/398265#M64911</guid>
      <dc:creator>GoodMan</dc:creator>
      <dc:date>2021-07-04T13:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to seperate columns into different tables.</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-seperate-columns-into-different-tables/m-p/398266#M64912</link>
      <description>&lt;P&gt;The documentation in the JMP 13 Scripting Guide is not very helpful, but it does point to the Scripting Index&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Subset a Data Table&lt;/STRONG&gt;&lt;BR /&gt;Subset() creates a new data table from rows that you specify. If you specify no rows, Subset&lt;BR /&gt;uses the selected rows. If no rows are selected or specified, it uses all rows. If no columns are &lt;BR /&gt;selected or specified, it uses all columns. And if Subset has no arguments, the Subset window &lt;BR /&gt;appears.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt &amp;lt;&amp;lt; Subset(
     Columns( columns ),
     Rows( row matrix ),
     Linked,
     Output Table Name( "name" ),
     Copy Formula( 1 or 0 ),
     Sampling rate( n ),
     Suppress Formula Evaluation( 1 or 0 ) );&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Note: For more arguments, see the Scripting Index in the Help menu.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 04 Jul 2021 13:28:14 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-seperate-columns-into-different-tables/m-p/398266#M64912</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2021-07-04T13:28:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to seperate columns into different tables.</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-seperate-columns-into-different-tables/m-p/398267#M64913</link>
      <description>Thank you. I will do some study on your notes.</description>
      <pubDate>Sun, 04 Jul 2021 13:38:03 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-seperate-columns-into-different-tables/m-p/398267#M64913</guid>
      <dc:creator>GoodMan</dc:creator>
      <dc:date>2021-07-04T13:38:03Z</dc:date>
    </item>
  </channel>
</rss>

