[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]
st: combining two variables
Thank you to everyone who answered my last question on
creating a variable corresponding to the row number.
Now I have a question about combining the data from two
variables (in the same data set) into one variable. I want to
combine the variables in such a way that the data from one
variable can replace the missing values from the other. I have
created an example of what I am looking for below:
var1 var2 newvar
. 2 2
. 8 8
. 0 0
7 . 7
3 . 3
. . .
Any thoughts on how to do this?
* For searches and help try: