Hi,
Maybe someone can help me here. I want to transfer the variable label from the originally variable to a newly calculated variable. It sounds easy enough. Mark A self proclaimed non-expert in SPSS syntax. |
within the variable view, select the label cell and copy it via ctrl-c. Select the label cell for the new variable and paste it via ctrl-v. Note that you can select multiple contiguous labels in a column and paste them to multiple contiguous cells if you have many of these to do and both sets of variables, new and old, are ordered together. If they are not you can drag the rows in the variable view around to reorder the variables.
________________________________ From: SPSSX(r) Discussion on behalf of Mark.W.Andrews Sent: Fri 8/18/2006 3:33 PM To: [hidden email] Subject: Simple Label Transfer Question Hi, Maybe someone can help me here. I want to transfer the variable label from the originally variable to a newly calculated variable. It sounds easy enough. Mark A self proclaimed non-expert in SPSS syntax. |
In reply to this post by Mark.W.Andrews
There is no way to do this with syntax? I am trying to write a program
that will do it automatically. -----Original Message----- From: Beadle, ViAnn [mailto:[hidden email]] Sent: Friday, August 18, 2006 4:52 PM To: Mark.W.Andrews; [hidden email] Subject: RE: Simple Label Transfer Question within the variable view, select the label cell and copy it via ctrl-c. Select the label cell for the new variable and paste it via ctrl-v. Note that you can select multiple contiguous labels in a column and paste them to multiple contiguous cells if you have many of these to do and both sets of variables, new and old, are ordered together. If they are not you can drag the rows in the variable view around to reorder the variables. ________________________________ From: SPSSX(r) Discussion on behalf of Mark.W.Andrews Sent: Fri 8/18/2006 3:33 PM To: [hidden email] Subject: Simple Label Transfer Question Hi, Maybe someone can help me here. I want to transfer the variable label from the originally variable to a newly calculated variable. It sounds easy enough. Mark A self proclaimed non-expert in SPSS syntax. |
You didn't ask for a syntax solution and I assumed you being a self-proclaimed syntax novice, you weren't interested in this approach. Try the APPLY DICTIONARY command to see if it does what you want. Presumably you are not starting with an existing data file because it is really simple to just assign the same label to two variables using the VARIABLE LABELS command.
________________________________ From: SPSSX(r) Discussion on behalf of Mark.W.Andrews Sent: Fri 8/18/2006 4:04 PM To: [hidden email] Subject: Re: Simple Label Transfer Question There is no way to do this with syntax? I am trying to write a program that will do it automatically. -----Original Message----- From: Beadle, ViAnn [mailto:[hidden email]] Sent: Friday, August 18, 2006 4:52 PM To: Mark.W.Andrews; [hidden email] Subject: RE: Simple Label Transfer Question within the variable view, select the label cell and copy it via ctrl-c. Select the label cell for the new variable and paste it via ctrl-v. Note that you can select multiple contiguous labels in a column and paste them to multiple contiguous cells if you have many of these to do and both sets of variables, new and old, are ordered together. If they are not you can drag the rows in the variable view around to reorder the variables. ________________________________ From: SPSSX(r) Discussion on behalf of Mark.W.Andrews Sent: Fri 8/18/2006 3:33 PM To: [hidden email] Subject: Simple Label Transfer Question Hi, Maybe someone can help me here. I want to transfer the variable label from the originally variable to a newly calculated variable. It sounds easy enough. Mark A self proclaimed non-expert in SPSS syntax. |
In reply to this post by Mark.W.Andrews
Mark,
This syntax works for me. APPLY DICTIONARY /FROM * /SOURCE VARIABLES = var1 /TARGET VARIABLES = var2 /FILEINFO /VARINFO VALLABELS = REPLACE VARLABEL . Adam _____________________________ Adam B. Troy, Ph.D. Director of Research GoalQuest, Inc. ----- Original Message ----- From: "Mark.W.Andrews" <[hidden email]> Newsgroups: bit.listserv.spssx-l To: <[hidden email]> Sent: Friday, August 18, 2006 5:04 PM Subject: Re: Simple Label Transfer Question > There is no way to do this with syntax? I am trying to write a program > that will do it automatically. > > > > -----Original Message----- > From: Beadle, ViAnn [mailto:[hidden email]] > Sent: Friday, August 18, 2006 4:52 PM > To: Mark.W.Andrews; [hidden email] > Subject: RE: Simple Label Transfer Question > > > > within the variable view, select the label cell and copy it via ctrl-c. > Select the label cell for the new variable and paste it via ctrl-v. Note > that you can select multiple contiguous labels in a column and paste > them to multiple contiguous cells if you have many of these to do and > both sets of variables, new and old, are ordered together. If they are > not you can drag the rows in the variable view around to reorder the > variables. > > > > ________________________________ > > From: SPSSX(r) Discussion on behalf of Mark.W.Andrews > Sent: Fri 8/18/2006 3:33 PM > To: [hidden email] > Subject: Simple Label Transfer Question > > Hi, > > Maybe someone can help me here. > > I want to transfer the variable label from the originally variable to a > newly calculated variable. It sounds easy enough. > > Mark > A self proclaimed non-expert in SPSS syntax. > |
In reply to this post by Mark.W.Andrews
Thanks,
It took some book work, but the APPLY DICTIONARY command seems to do the trick. Mark -----Original Message----- From: Beadle, ViAnn [mailto:[hidden email]] Sent: Friday, August 18, 2006 5:13 PM To: Mark.W.Andrews; [hidden email] Subject: RE: Re: Simple Label Transfer Question You didn't ask for a syntax solution and I assumed you being a self-proclaimed syntax novice, you weren't interested in this approach. Try the APPLY DICTIONARY command to see if it does what you want. Presumably you are not starting with an existing data file because it is really simple to just assign the same label to two variables using the VARIABLE LABELS command. ________________________________ From: SPSSX(r) Discussion on behalf of Mark.W.Andrews Sent: Fri 8/18/2006 4:04 PM To: [hidden email] Subject: Re: Simple Label Transfer Question There is no way to do this with syntax? I am trying to write a program that will do it automatically. -----Original Message----- From: Beadle, ViAnn [mailto:[hidden email]] Sent: Friday, August 18, 2006 4:52 PM To: Mark.W.Andrews; [hidden email] Subject: RE: Simple Label Transfer Question within the variable view, select the label cell and copy it via ctrl-c. Select the label cell for the new variable and paste it via ctrl-v. Note that you can select multiple contiguous labels in a column and paste them to multiple contiguous cells if you have many of these to do and both sets of variables, new and old, are ordered together. If they are not you can drag the rows in the variable view around to reorder the variables. ________________________________ From: SPSSX(r) Discussion on behalf of Mark.W.Andrews Sent: Fri 8/18/2006 3:33 PM To: [hidden email] Subject: Simple Label Transfer Question Hi, Maybe someone can help me here. I want to transfer the variable label from the originally variable to a newly calculated variable. It sounds easy enough. Mark A self proclaimed non-expert in SPSS syntax. |
Free forum by Nabble | Edit this page |