Statalist


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

st: Re: Does -insheet- read data incorrectly?


From   Dirk Enzmann <[email protected]>
To   [email protected]
Subject   st: Re: Does -insheet- read data incorrectly?
Date   Fri, 13 Mar 2009 00:08:08 +0100

In reply to my own question (see: http://www.hsph.harvard.edu/cgi-bin/lwgate/STATALIST/archives/statalist.0903/date/article-577.html
):

Thanks to Friedrich Huebler and the Stata List (see:
http://www.stata.com/statalist/archive/2008-04/msg00836.html
) (search of the Statlist Archives using "quotes" and "insheet")

I found a solution to the problem:

* ------------------------------------------
filefilter "file.txt" "fileOK.txt", from(\Q) to ("@#@")
insheet using "fileOK.txt", tab clear
erase "fileOK.txt"
replace note = subinstr(note,"@#@",`"""',.)
* ------------------------------------------

Thanks to the Stata-List!

Still: Should the -insheet- behavior as described in my previous mail be regarded as a bug or not?

Yours,
Dirk

*************************************************
Dr. Dirk Enzmann
Institute of Criminal Sciences
Dept. of Criminology
Schlueterstr. 28
D-20146 Hamburg
Germany

phone: +49-(0)40-42838.7498 (office)
       +49-(0)40-42838.4591 (Mrs Billon)
fax:   +49-(0)40-42838.2344
email: [email protected]
www: http://www2.jura.uni-hamburg.de/instkrim/kriminologie/Mitarbeiter/Enzmann/Enzmann.html
*************************************************
*
*   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–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index