Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: RE: RE: RE: accuracy and preserving uniqueness of id


From   "Nick Cox" <n.j.cox@durham.ac.uk>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: RE: RE: RE: accuracy and preserving uniqueness of id
Date   Wed, 26 Feb 2003 15:06:24 -0000

Sayer, Bryan
> 
> But I do recommend padding the IDs with leading zeros if 
> any of the IDs
> happen to have leading blanks.  Some programs and functions 
> attempt to be
> "smart" in the presence of leading blanks and will left 
> justify the operand.

The "But" here should be an "And". If leading 
blanks really should be interpreted as leading zeros, 
then this is much easier with string variables. 
Hence this is another argument for ids as strings, 
and not a caveat. 

Nick 
n.j.cox@durham.ac.uk 

*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index