pspp-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


From: Frans Houweling
Subject: Re: copying labels from an old variable to a new one.
Date: Tue, 11 Mar 2025 09:43:56 +0100
User-agent: Mozilla Thunderbird

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.
ERASE FILE = 'temp.sav'.
Hth, frans


On 3/10/25 19:48, ft gmail wrote:

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 nuts1.

How can I achieve this by syntax ? I don't want to retype the labels of all 123 European regions which exist already in the data set.

Thanks in advance

ftr


J’ai lié un fichier à ce message :



reply via email to

[Prev in Thread] Current Thread [Next in Thread]