Notice: On March 31, it was **announced** that Statalist is moving from an email list to a **forum**. The old list will shut down on April 23, and its replacement, **statalist.org** is already up and running.

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

From |
"Martin Weiss" <martin.weiss1@gmx.de> |

To |
<statalist@hsphsun2.harvard.edu> |

Subject |
st: AW: Infix imports wrong numbers! |

Date |
Thu, 1 Jul 2010 16:21:08 +0200 |

<> The connection of your problem to -infix- is rather loose. The same happens if you omit the -double- from the -input- line: ************* clear* input double ID 018554079 018554081 end format ID %09.0f l ************* Note the -format- chosen gives you a leading zero, as would a similarly formatted string, as NJC has already recommended. HTH Martin -----Ursprüngliche Nachricht----- Von: owner-statalist@hsphsun2.harvard.edu [mailto:owner-statalist@hsphsun2.harvard.edu] Im Auftrag von techné Gesendet: Donnerstag, 1. Juli 2010 15:55 An: statalist@hsphsun2.harvard.edu Betreff: st: Infix imports wrong numbers! Hope it is not too odd a question: I have tried to find solutions to this but could not manage to solve it by myself or surfing the net I am using infix to import a dataset that has fixed column-content. The problem is that infix seems "imprecise" in that it imports long numbers mistaking the last digit, or averaging some variables between two subsequent observations... Here is an example: consider the file test.xxx which is made of the following two lines: 018554079 00002 018554081 00002 I use the command: infix ID 1-9 EMPTY 10-22 VAR1 23-27 using test.xxx what I obtain is two observations with ID == 018554080 !!! what's wrong? Thank you very much for your help frank * * 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/ * * 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/

**References**:**st: Infix imports wrong numbers!***From:*techné <fondamentalmente@gmail.com>

- Prev by Date:
**st: RE: Infix imports wrong numbers!** - Next by Date:
**Re: AW: st: RE: venn diagram and venndiag** - Previous by thread:
**st: RE: Infix imports wrong numbers!** - Index(es):