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: Re Re: How to merge datasets when there are missing values in the matching variables


From   "Joseph Coveney" <[email protected]>
To   <[email protected]>
Subject   st: Re Re: How to merge datasets when there are missing values in the matching variables
Date   Sun, 22 Jan 2012 15:32:35 +0900

> I'd strive to make the concatenated ID variable of uniform length, by padding
> the integers with zeros, -string(ID1, "%05.0f")- for example.  

--------------------------------------------------------------------------------

Make that -string(ID1, "%-05.0f")-, or even -string(ID1, "%-5.0f")-.

Joseph Coveney


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


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