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.
  • Graph Builder Toolbar streamlines interactive graphing. Creates shortcuts on Report and GraphBuilder Helpers toolbars. Download and install the extension.
  • JMP will suspend normal business operations for our Rest and Recharge Day on Friday, October 2, 2026.
    Regular business hours will resume on Monday, October 5, 2026.

Discussions

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

"apply" value labels

When I remove a formula from a column, the calculated values stay.

When I remove a Value Labels Property from a column, the values switch back to the original values.

 

Is there an alternative remove (~ "apply") function for value Labels, which converts the data type of the column to character and keeps the Value Labels?

 

Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );

dt << New Column( "sex2",
	Formula(Recode(:sex,{Map Value( _rcOrig, {"F", "female", "M", "male"} )}));
);
dt:sex 2 << Delete Formula;

dt:sex << Value Labels( {"F" = "female", "M" = "male"} ) << Use Value Labels( 1 );
dt:sex << delete property( Value Labels );
1 ACCEPTED SOLUTION

Accepted Solutions
jthi
Super User

Re: "apply" value labels

After you have Value Labels set

jthi_0-1683199060445.png

and you go to recode columns you will have an option for recoding them

jthi_2-1683199195598.png

jthi_3-1683199234242.png

this seems to replace the values with labels

 

-Jarmo

View solution in original post

3 REPLIES 3
txnelson
Super User

Re: "apply" value labels

Removed to reduce confusion.

 

Jim
jthi
Super User

Re: "apply" value labels

After you have Value Labels set

jthi_0-1683199060445.png

and you go to recode columns you will have an option for recoding them

jthi_2-1683199195598.png

jthi_3-1683199234242.png

this seems to replace the values with labels

 

-Jarmo
hogi
Level XIII

Re: "apply" value labels

wonderful, thanks!

Recommended Articles