cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • New to JMP? Join us Sept. 23-24 for the Early User Edition of Discovery Summit, tailor-made for new users. Register now for free!
  • Use World Cup data to build models, explore spatial relationships, and create informative visualizations in JMP. Register. July 17, 2 pm US Eastern Time.
  • Your voice matters! Tell us how you prefer to receive JMP updates, so we can tailor our communication to your needs. Take short survey.

Discussions

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

Rename column Max(Max(date))

How to rename column Max(Max(date)) to "date"?

 

I tried:

1. :Max(Max(date)) << Set Name ("date");

2. :Name (Max(Max(date)) ) << Set Name ("date");

3. Column( dt, Max(Max(date))) << Set Name( "date" );

3. Column( dt, :Name (Max(Max(date))) ) << Set Name( "date" );

 

But none of these works

 

1 ACCEPTED SOLUTION

Accepted Solutions
Thierry_S
Super User

Re: Rename column Max(Max(date))

Hi,

When your column name has parentheses or any other special characters, your best bet is the following syntax:

Column (dt, "Max(Max(date))" << Set name ("date");

Note the quotes before and after the column name.

Best

TS

Thierry R. Sornasse

View solution in original post

2 REPLIES 2
Thierry_S
Super User

Re: Rename column Max(Max(date))

Hi,

When your column name has parentheses or any other special characters, your best bet is the following syntax:

Column (dt, "Max(Max(date))" << Set name ("date");

Note the quotes before and after the column name.

Best

TS

Thierry R. Sornasse
jthi
Super User

Re: Rename column Max(Max(date))

I like using same syntax as @Thierry_S suggest (Column(dt_ref, "colname")) but if you want to use the colon syntax  

:"Max(Max(date))" or even better would be :"Max(Max(date))"n. Using Name() is deprecated syntax for ""n. For some additional information regarding names see Names and JSL Rules for Names .

-Jarmo

Recommended Articles