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
Luq2
Level I

Changing value label in the entire data set

Hi,

 

i have the following problem at hand:

 

My variables have value labels in English and I need to replace them with a language overlay of another language. I have English and other languages in a structured format. 

is there any way to export the value labels and import the new ones? With variable names, I just copy paste, which works fine.

 

With value labels I haven't found a solution yet.

 

Thanks

Sebastian

1 REPLY 1
txnelson
Super User

Re: Changing value label in the entire data set

Here is the syntax required to change the value labels for a column

names default to here(1);
dt=open("$SAMPLE_DATA/Big Class.jmp");

// English
EnglishList = {"F" = "Female", "M" = "Male"};
dt:sex<<set property(value labels( EnglishList ) );
/*
// German
GermanList = {"F" = "Weiblich", "M" = "Männlich"};
dt:sex<<set property(value labels( GermanList ) );
*/

 

Jim

Recommended Articles