<?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: Customize Column Name in Tabulate Funtion JSL in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Customize-Column-Name-in-Tabulate-Funtion-JSL/m-p/407388#M65741</link>
    <description>&lt;P&gt;Here is one way to get what you want&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;names default to here(1);
dt4=current data table();
dt5 = dt4 &amp;lt;&amp;lt; Summary(
	Group( :Y Intercept ),
	Sum( :Aging Rate ),
	Subgroup( :Batch No Intercept ),
	Freq( "None" ),
	Weight( "None" ),
	statistics column name format( "column" ),
	Link to original data table( 0 )
);

dt5 &amp;lt;&amp;lt; delete columns( "N Rows");
for(i=1,i&amp;lt;=N Cols(dt5),i++,
	if(word(1,as column(dt5,i)&amp;lt;&amp;lt;get name,"(),") == "Aging Rate",
	column(dt5,i) &amp;lt;&amp;lt; set name(word(2,as column(dt5,i)&amp;lt;&amp;lt;get name,"(),")))
);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Using the Summary Platform automatically produces a data table as the output.&lt;/P&gt;</description>
    <pubDate>Thu, 05 Aug 2021 16:46:34 GMT</pubDate>
    <dc:creator>txnelson</dc:creator>
    <dc:date>2021-08-05T16:46:34Z</dc:date>
    <item>
      <title>Customize Column Name in Tabulate Funtion JSL</title>
      <link>https://community.jmp.com/t5/Discussions/Customize-Column-Name-in-Tabulate-Funtion-JSL/m-p/407329#M65737</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am having difficulty deciphering how to customize the resultant column names from the tabulate script function. My code is here:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;obj3 = dt4 &amp;lt;&amp;lt; Tabulate(
		Add Table(
			Column Names( :Batch No Intercept ),
			Column Table(
				Grouping Columns( :Batch No Intercept ),
				Analysis Columns( :Aging Rate )
			),
			Row Table( Grouping Columns( :Y Intercept ) )
		 )
	);
	
	obj 3 &amp;lt;&amp;lt; Make Into Data Table;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;As my column "Batch No Intercept" is a continuous column of sample numbers (###-##-1, ###-##-2, etc) the resultant column names from this script follow: "Sum(Aging Rate, Sample number)"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to have the resultant data table only define the column name as exclusively the sample number.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any suggestions?&lt;/P&gt;</description>
      <pubDate>Sat, 10 Jun 2023 23:34:49 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Customize-Column-Name-in-Tabulate-Funtion-JSL/m-p/407329#M65737</guid>
      <dc:creator>jnikkel</dc:creator>
      <dc:date>2023-06-10T23:34:49Z</dc:date>
    </item>
    <item>
      <title>Re: Customize Column Name in Tabulate Funtion JSL</title>
      <link>https://community.jmp.com/t5/Discussions/Customize-Column-Name-in-Tabulate-Funtion-JSL/m-p/407388#M65741</link>
      <description>&lt;P&gt;Here is one way to get what you want&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;names default to here(1);
dt4=current data table();
dt5 = dt4 &amp;lt;&amp;lt; Summary(
	Group( :Y Intercept ),
	Sum( :Aging Rate ),
	Subgroup( :Batch No Intercept ),
	Freq( "None" ),
	Weight( "None" ),
	statistics column name format( "column" ),
	Link to original data table( 0 )
);

dt5 &amp;lt;&amp;lt; delete columns( "N Rows");
for(i=1,i&amp;lt;=N Cols(dt5),i++,
	if(word(1,as column(dt5,i)&amp;lt;&amp;lt;get name,"(),") == "Aging Rate",
	column(dt5,i) &amp;lt;&amp;lt; set name(word(2,as column(dt5,i)&amp;lt;&amp;lt;get name,"(),")))
);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Using the Summary Platform automatically produces a data table as the output.&lt;/P&gt;</description>
      <pubDate>Thu, 05 Aug 2021 16:46:34 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Customize-Column-Name-in-Tabulate-Funtion-JSL/m-p/407388#M65741</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2021-08-05T16:46:34Z</dc:date>
    </item>
    <item>
      <title>Re: Customize Column Name in Tabulate Funtion JSL</title>
      <link>https://community.jmp.com/t5/Discussions/Customize-Column-Name-in-Tabulate-Funtion-JSL/m-p/407400#M65743</link>
      <description>&lt;P&gt;That worked perfectly! Thank you. One other quick question, when ordering the column, JMP puts 123-45-10 above 123-45-1, instead of at the end of the series example:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;123-45-10&amp;nbsp;&amp;nbsp; instead of&amp;nbsp; 123-45-1&lt;/P&gt;&lt;P&gt;123-45-1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 123-45-2&lt;/P&gt;&lt;P&gt;123-45-2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ...&lt;/P&gt;&lt;P&gt;...&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 123-45-9&lt;/P&gt;&lt;P&gt;123-45-9&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; 123-45-10&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Column properties are Character and Nominal. What is the root cause of this?&lt;/P&gt;</description>
      <pubDate>Thu, 05 Aug 2021 17:34:45 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Customize-Column-Name-in-Tabulate-Funtion-JSL/m-p/407400#M65743</guid>
      <dc:creator>jnikkel</dc:creator>
      <dc:date>2021-08-05T17:34:45Z</dc:date>
    </item>
  </channel>
</rss>

