- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
column name change JSL script no longer works
Hello JMP community,
After downloading fine scale weather data, I have a script to summarize the data which includes changing the column names in the new table. However, it seems the following script no longer works in the latest version of JMP. Can anyone tell me how to fix this? I've attached the full script for context, but the following is what no longer works:
Names Default To Here( 1 );
dt = daily mean:Name( "Mean(Temp (F))" ) << Set Name( "Mean temp °F" );
dt = daily mean:Name( "Std Dev(Temp (F))" ) << Set Name( "Std Dev temp °F" );
dt = daily mean:Name( "Min(Temp (F))" ) << Set Name( "Min temp °F" );
dt = daily mean:Name( "Max(Temp (F))" ) << Set Name( "Max temp °F" );
dt = daily mean:Name( "Range(Temp (F))" ) << Set Name( "Range temp °F" );
dt = daily mean:Name( "Mean(Temp (C))" ) << Set Name( "Mean temp °C" );
dt = daily mean:Name( "Std Dev(Temp (C))" ) << Set Name( "Std Dev temp °C" );
dt = daily mean:Name( "Min(Temp (C))" ) << Set Name( "Min temp °C" );
dt = daily mean:Name( "Max(Temp (C))" ) << Set Name( "Max temp °C" );
dt = daily mean:Name( "Range(Temp (C))" ) << Set Name( "Range temp °C" );
dt = daily mean:Name( "Max(Precip Since Mid. (inches))" ) << Set Name( "Max Precip in" );
dt = daily mean:Name( "Max(Precip Since Mid. (mm))" ) << Set Name( "Max Precip mm" );
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
Re: column name change JSL script no longer works
Fascinating. I did not know that ever worked. It appears not to work in JMP 16. ( @XanGregg try big class:name<<setname("yyy") )
Change all "dt = daily mean" to "dt_tab" and I think you'll be back in business.
something like this:
dt_tab:Name( "Mean(Temp (F))" ) << Set Name( "Mean temp °F" );
"daily mean" is the name of the data table. Apparently, before JMP 16, that made a name space. You have a variable in the JSL, dt_tab, that holds a handle to the data table which is what is usually used.
In your original JSL, you are not actually using the assignment to dt (other than at the beginning for the current data table) and it was not doing anything useful.