copying labels from an old variable to a new one.

2025-03-11 Thread ft gmail
Hi, I try to create a new variable on the basis of another one and copy the value labels from one variable to the other. To my surprise, this does not work here. GET FILE  ="EVS 2017 short.sav". freq nuts1. comp regional = nuts1. freq regional. Regional has not received the value labels of n

Re: copying labels from an old variable to a new one.

2025-03-11 Thread Frans Houweling
Hi ftr,   one way to achieve this would be like this (of course the new names are up to you): GET FILE = 'EVS 2017 short.sav'. SAVE OUTFILE = 'temp.sav' /KEEP = country NUTS1 NUTS2   /RENAME = (country NUTS1 NUTS2 = nation regional regional2). MATCH FILES FILE = * /FILE = 'temp.sav'. EXECUTE.