cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • Sign-in to the JMP Community will be unavailable intermittently Dec. 6-7 due to a system update. Thank you for your understanding!
  • We’re retiring the File Exchange at the end of this year. The JMP Marketplace is now your destination for add-ins and extensions.
  • JMP 19 is here! Learn more about the new features.

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