Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.


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

st: How to fill up empty cells?


From   "Peter Bilfiger" <[email protected]>
To   [email protected]
Subject   st: How to fill up empty cells?
Date   Tue, 21 Jan 2014 14:12:17 +0100 (CET)

Dear Stata Community,
 
I got the following two variables in my dataset:
 
Number1        Number2
               000752
               000752
48239P         000752
               000752
               000752
               000752
89351Q         893895
               893895
               893895
               893895
               893895
....
 

I want to fill up all the empty cells so that it looks like the following:
 
Number1        Number2
48239P           000752
48239P           000752
48239P           000752
48239P           000752
48239P           000752
48239P           000752
89351Q           893895
89351Q           893895
89351Q           893895
89351Q           893895
89351Q           893895
 
Each Number1 has a corresponding Number2. 
 
Appreciate any help. Thank you.
 
 

*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/faqs/resources/statalist-faq/
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index