cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • Learn how to build custom Python data connectors and further customize JMP’s Data Connector Framework with the Python Data Connector Demo, available now in the JMP Marketplace!
  • See how to create experiments to support product design and ID useful product features. Register for June 12 webinar, 2pm US Eastern Time.

Discussions

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

Table Split: how to move the suffix before the original column names? Temperaruer Step 1 vs. Step 1 Temperature

Hello, I want to get some advice for splitting table. Thank you!

 

I have two columns A and B

A: Temperature 

B: Step 1 / Step2 / Step3

I split column "temperature" by column "steps". The final column names are "Temperature Step1", "Temperature Step2"...

How could I make final column name starts with suffix steps? like "Step1 Temperature", "Step2 Temperature"? I got a lot of columns so it is difficult to edit manually. 

Thanks! 

1 ACCEPTED SOLUTION

Accepted Solutions
jthi
Super User

Re: Table Split: how to move the suffix before the original column names? Temperaruer Step 1 vs. Step 1 Temperature

You can edit your B column (or create new) in your original data table before split (change formula to "Temperature " || :B)

jthi_3-1727185691442.png

jthi_4-1727185700546.png

 

Or you can use recode column names with regex for example

jthi_0-1727185539471.png

jthi_1-1727185569797.png

With ^ you can "replace" start of the string and then replacement text is "Temperature "

jthi_5-1727185770755.png

 

Or you can write a script

-Jarmo

View solution in original post

2 REPLIES 2
jthi
Super User

Re: Table Split: how to move the suffix before the original column names? Temperaruer Step 1 vs. Step 1 Temperature

You can edit your B column (or create new) in your original data table before split (change formula to "Temperature " || :B)

jthi_3-1727185691442.png

jthi_4-1727185700546.png

 

Or you can use recode column names with regex for example

jthi_0-1727185539471.png

jthi_1-1727185569797.png

With ^ you can "replace" start of the string and then replacement text is "Temperature "

jthi_5-1727185770755.png

 

Or you can write a script

-Jarmo
Fruit325
Level III

Re: Table Split: how to move the suffix before the original column names? Temperaruer Step 1 vs. Step 1 Temperature

@jthi  Thanks! That's exactly what I am looking for and it works very well! 

Recommended Articles