cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • New to JMP? Join us Sept. 23-24 for the Early User Edition of Discovery Summit, tailor-made for new users. Register now for free!
  • Use World Cup data to build models, explore spatial relationships, and create informative visualizations in JMP. Register. July 17, 2 pm US Eastern Time.
  • Your voice matters! Tell us how you prefer to receive JMP updates, so we can tailor our communication to your needs. Take short survey.

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