Dear all,
I thought I could remove a single value label like so: add value labels v1 1. However, in the variable view, the value 1 is still present with quotes around an empty string (screenshot: https://dl.dropbox.com/u/39492899/value_labels.jpg). This result is different from computing a new variable v1 and not specifying any label for the value 1. Is there an easy way to get rid of these quotes an make the value 1 disappear altogether from the value labels in the variable view? Thanks in advance, Ruben |
There is a subtle difference between no
value label and an empty value label.
You can remove an individual label using the Data Editor. If you want a syntax way, use Data >Define Variable Properties, delete the label as it appears in the grid, and paste the syntax. Of course, this is also easy to do with programmability. HTH, Jon Peck (no "h") aka Kim Senior Software Engineer, IBM [hidden email] new phone: 720-342-5621 From: Ruben van den Berg <[hidden email]> To: [hidden email], Date: 10/23/2012 08:57 AM Subject: [SPSSX-L] Remove single value label Sent by: "SPSSX(r) Discussion" <[hidden email]> Dear all, I thought I could remove a single value label like so: add value labels v1 1. However, in the variable view, the value 1 is still present with quotes around an empty string (screenshot: https://dl.dropbox.com/u/39492899/value_labels.jpg). This result is different from computing a new variable v1 and not specifying any label for the value 1. Is there an easy way to get rid of these quotes an make the value 1 disappear altogether from the value labels in the variable view? Thanks in advance, Ruben |
Thank you Jon!
The syntax generated by the GUI was a "value labels" command with all values (except 1) and their labels. I thought there would be an easier solution with "add value labels" but in this case I'll fix it with Python, no problem. Kind regards, Ruben To: [hidden email] CC: [hidden email] Subject: Re: [SPSSX-L] Remove single value label From: [hidden email] Date: Tue, 23 Oct 2012 09:14:00 -0700 There is a subtle difference between no value label and an empty value label. You can remove an individual label using the Data Editor. If you want a syntax way, use Data >Define Variable Properties, delete the label as it appears in the grid, and paste the syntax. Of course, this is also easy to do with programmability. HTH, Jon Peck (no "h") aka Kim Senior Software Engineer, IBM [hidden email] new phone: 720-342-5621 From: Ruben van den Berg <[hidden email]> To: [hidden email], Date: 10/23/2012 08:57 AM Subject: [SPSSX-L] Remove single value label Sent by: "SPSSX(r) Discussion" <[hidden email]> Dear all, I thought I could remove a single value label like so: add value labels v1 1. However, in the variable view, the value 1 is still present with quotes around an empty string (screenshot: https://dl.dropbox.com/u/39492899/value_labels.jpg). This result is different from computing a new variable v1 and not specifying any label for the value 1. Is there an easy way to get rid of these quotes an make the value 1 disappear altogether from the value labels in the variable view? Thanks in advance, Ruben |
Free forum by Nabble | Edit this page |