From | "Michael Blasnik" <[email protected]> |
To | <[email protected]> |
Subject | st: Re: Formatting fields |
Date | Sat, 8 Oct 2005 07:48:08 -0400 |
Hi!
I have two files one file has ID in the form str10 the other in the form 12.0g.
I want to merge the data by the ID
When I perform a command to change the str var to numeric, the new numeric
field comes in as a float %9.0g
When I reformat that field to 12.0g, the field values change completely.
For instance,
gen id2 =real(id)
<snip>
WHY IS THIS HAPPENING AND HOW CAN I CORRECT IT? P.S. Using version 6.0 Have a great day! Chris
* * 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–2024 StataCorp LLC | Terms of use | Privacy | Contact us | What's new | Site index |