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

Re: st: How to read in an irregular ASCII-file?


From   Ron�n Conroy <[email protected]>
To   [email protected]
Subject   Re: st: How to read in an irregular ASCII-file?
Date   Thu, 13 Jan 2005 10:40:16 +0000

Barbara Hofmann wrote:

Hello,

hopefully someone of you can help me with the following:

i want to read in a ascii-dataset of a structure like this:

104525300010 9064496 022 999929912
204525300010 9064496 1:19 59 22 2:4 0 96 3:8 0 92 4:0 33 67
204525300010 9064496 6:30 50 20 7:78 5 17
104525300010 9081400 023 23131122


"2" in the first column means that this line belongs to the line before. column 31-39 include replies to 9 different questions. if it is a "9" this means, that in the following line there is a more specific answer to this question which is stored like this:

[other problems omitted]

A text editor will help you here, by finding the sequence "<end of line>2" which you can simply replace with nothing. This will take all your continuation lines and put them on the line they continue.



--

Ronan M Conroy ([email protected]) Senior Lecturer in Biostatistics Royal College of Surgeons Dublin 2, Ireland +353 1 402 2431 (fax 2764) -------------------- Just say no to drug reps http://www.nofreelunch.org/

--------------------------------------------------------------------------------------------------------------------
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom
they are addressed.
If you have received this email in error please notify the
originator of the message. This footer also confirms that this
email message has been scanned for the presence of computer viruses.

Any views expressed in this message are those of the individual
sender, except where the sender specifies and with authority,
states them to be the views of The Royal College Of Surgeons in Ireland.

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


*
* 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