cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
The Discovery Summit 2025 Call for Content is open! Submit an abstract today to present at our premier analytics conference.
Get the free JMP Student Edition for qualified students and instructors at degree granting institutions.
Choose Language Hide Translation Bar
View Original Published Thread

How to combine two columns info and remove redundant info?

Fruit325
Level III

Hi I want to get some advice of combining columns. 

 

Here I have column 1 and 2 and these two columns are actually containing the same info of interest. I want to combine them together and remove repeat info. 

 

Original table: 

Column1 Column2

     1              1

     2          

     3              3

 

Final table: 

Column

1     

2          

3        

 

Thank you! 

 

 

3 REPLIES 3
jthi
Super User


Re: How to combine two columns info and remove redundant info?

If they are always same, you can create new column which is some summary statistic of those columns (min, max, mean, median,...)

jthi_0-1727269985178.png

jthi_1-1727269992892.png

Then delete the formula from new column and rename it

jthi_3-1727270017142.png

And then remove old columns if you want to

jthi_4-1727270047527.png

 

-Jarmo
Fruit325
Level III


Re: How to combine two columns info and remove redundant info?

Oh that's a good idea and I have not thought abou it...

So.. what if the values are categorical...? 

jthi
Super User


Re: How to combine two columns info and remove redundant info?

If they are numerical categorical you can still use that kind of approach. If they are characters, there are still many different options and which to use can depend a little bit on your data, below is one simple example

jthi_0-1727621621036.png

If(
	Is Missing(:Column 1), :Column 2,
	Is Missing(:Column 2), :Column 1,
	:Column 1
)
-Jarmo