Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
st: Importing text files using different separation rules
From
"Seliger Florian" <[email protected]>
To
"'[email protected]'" <[email protected]>
Subject
st: Importing text files using different separation rules
Date
Fri, 20 Jan 2012 14:15:44 +0000
Dear Statalist,
I want to import text files with STATA, but the problem is that some string variables are too long (too many strings).
Therefore, I'm searching for a way to tell STATA that it shall split these variables according to certain rules (the separation character for these variables must be different from other variables which are not too long) when importing the files. STATA only needs to apply these rules to certain variables and not to all.
Principally, I would import the too long variables first, then doing a match with other variables in the second step. Unfortunately, "insheet" does not import single variables (STATA will report an error message).
Any suggestions?
Thanks.
Best regards,
__________
Florian Seliger
ETH Zurich
KOF Swiss Economic Institute
WEH C 5
Weinbergstrasse 35
8092 Zurich, Switzerland
[email protected]
www.kof.ethz.ch
*
* 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/