cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • Don’t miss your chance to experience Discovery Summit Europe at our best available rate! Early bird registration through 31 Oct.
  • Image to Table JMP extension imports single or batch images as data tables. Useful to extract curves from pictures or convert image data to curve data to use in analyses like Functional Data Explorer. Download and install the extension.

Discussions

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

How do I replace/ recode string with unique number

I have a dataset with > 1M rows and a particular 'Supplier' column with 3400 unique suppliers (data type Character, Nominal). These suppliers have a rather user-unfriendly format, e.g; '0x384D5E35468AB867642A475A2B526AE264E37B9E'. How can I replace (recode into new column?) the 3400 suppliers by a unique number from 1 -> 3400?

(In Excel I would create a Pivot table and then re-match using xlookup)

Using JMP 17.2.0

1 ACCEPTED SOLUTION

Accepted Solutions
jthi
Super User

Re: How do I replace/ recode string with unique number

You can do similar thing using Summary in JMP. Create new summary table with your name column as group, then add new column from right click menu (Row()) and join that back to original table

jthi_5-1695721168153.png

 

or maybe use value codes. From recode

jthi_0-1695721051564.png

 

jthi_2-1695721071876.png

go to column properties of that column and disable "Use Value Labels"

jthi_3-1695721093080.png

 

-Jarmo

View solution in original post

2 REPLIES 2
jthi
Super User

Re: How do I replace/ recode string with unique number

You can do similar thing using Summary in JMP. Create new summary table with your name column as group, then add new column from right click menu (Row()) and join that back to original table

jthi_5-1695721168153.png

 

or maybe use value codes. From recode

jthi_0-1695721051564.png

 

jthi_2-1695721071876.png

go to column properties of that column and disable "Use Value Labels"

jthi_3-1695721093080.png

 

-Jarmo
WernerL
Level III

Re: How do I replace/ recode string with unique number

Thank you Jarmo,

your first suggestion worked very well to address my issue.

Best regards,

Werner

Recommended Articles