cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • Sign-in to the JMP Community will be unavailable intermittently Dec. 6-7 due to a system update. Thank you for your understanding!
  • We’re retiring the File Exchange at the end of this year. The JMP Marketplace is now your destination for add-ins and extensions.
  • JMP 19 is here! Learn more about the new features.

Discussions

Solve problems, and share tips and tricks with other JMP users.
Choose Language Hide Translation Bar
switzal87
Level III

How to Change a COL name of a SUMMARIZED table

Hello JMP community,

 

I would like to know how can I rename a column name after executing the "SUMMARY" function in JMP.

My raw data table is as shown:
1.JPG

 

 

 

 

and I would require to Summarized this (get the average) and I will have the following data table:2.JPG

 

 

 

 

 

Now for my final table, I would want to rename the following:

Mean(DIMENSIONA) to "DIMENSIONA" only ,

Mean(DIMENSIONB) to "DIMENSIONB" only,

Mean(DIMENSIONC) to "DIMENSIONC" only and so on...

Im using the following code to do it but no to avail.

3.JPG

 

.

 

I am getting the following log. I dont know the work around, seems like the "Mean" is a function word so that's why I get this kind of error. 

4.JPG

 

 

 

 

I hope someone can help find solution or do anything about it. Much appreciated everyone's help!

thanks in advance! :) 

1 ACCEPTED SOLUTION

Accepted Solutions
txnelson
Super User

Re: How to Change a COL name of a SUMMARIZED table

You will not have to rename the columns in the summary output table if you use the 

     statistics column name format( "column" )

option in the Summary Platform.  This is also a selection in the interactive dialog box on the lower left side, in an area titled "statistics column name format: 

Here is a simple script illustrating what I am saying

Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA\Fitness.jmp" );

dtSum = dt << Summary(
	Mean( :Age ),
	Mean( :Weight ),
	Mean( :Oxy ),
	Mean( :Runtime ),
	Mean( :RunPulse ),
	Mean( :RstPulse ),
	Mean( :MaxPulse ),
	Freq( "None" ),
	Weight( "None" ),
	statistics column name format( "column" ),
	Link to original data table( 0 )
);

Jim

View solution in original post

2 REPLIES 2
txnelson
Super User

Re: How to Change a COL name of a SUMMARIZED table

You will not have to rename the columns in the summary output table if you use the 

     statistics column name format( "column" )

option in the Summary Platform.  This is also a selection in the interactive dialog box on the lower left side, in an area titled "statistics column name format: 

Here is a simple script illustrating what I am saying

Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA\Fitness.jmp" );

dtSum = dt << Summary(
	Mean( :Age ),
	Mean( :Weight ),
	Mean( :Oxy ),
	Mean( :Runtime ),
	Mean( :RunPulse ),
	Mean( :RstPulse ),
	Mean( :MaxPulse ),
	Freq( "None" ),
	Weight( "None" ),
	statistics column name format( "column" ),
	Link to original data table( 0 )
);

Jim
switzal87
Level III

Re: How to Change a COL name of a SUMMARIZED table

Thanks a lot! Works perfectly!

Recommended Articles