cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • Learn how to build custom Python data connectors and further customize JMP’s Data Connector Framework with the Python Data Connector Demo, available now in the JMP Marketplace!
  • See how to create experiments to support product design and ID useful product features. Register for June 12 webinar, 2pm US Eastern Time.

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