I have two variables X and Y, where X have no missing values while Y have many missing values. I want to create a third variable Z whose values are the values of Y and the missing values of Y are replace with the values of X. The data structure looks like below:
X Y Z
a f f
b b
c g g
d d
e e
Do you know the syntax for this?
Thank you.
Eins
|
Adding more friends is quick and easy.Import them over to Yahoo! Mail today!