Statalist The Stata Listserver


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: Analysis of text


From   "Partha Bhattacharyya" <[email protected]>
To   [email protected]
Subject   Re: st: Analysis of text
Date   Fri, 8 Dec 2006 14:05:13 -0500

Dear Taavi,

you can using teh string parse option, which is "strparse" and you can
parse by each questions, like "M1" and so forth. Once you set the loop
with strring parse you do not need to re-write the code for each
questions.   But I think STATA limits text length to 255 characters.
but I might be wrong on the number of characters.

You might need to install strparse, the command is "ssc install strparse"

Best,

Partha








On 12/8/06, Taavi Lai <[email protected]> wrote:
Dear statalisters,

I have a set (~10 000) of text files, each containing questionnaire
answers for one person. These files are structured as plain text files
without any tabular form.
I�d like to loop through all these files and generate one datafile as a
result. Say, "M1" represents a question number and the value for this
question is thus the text/number between  "M1" and "M2".

Could such a thing be done using Stata? Any suggestions and comments are
welcome.

Best regards,
Taavi
*
*   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/

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