Statalist


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

st: Creating single characters from long strings


From   "Andri Rauch" <[email protected]>
To   <[email protected]>
Subject   st: Creating single characters from long strings
Date   Wed, 26 Mar 2008 12:56:41 +0100

Dear all,
I should create single characters from very long strings (ie around 500
characters).
My original variable abcdefg... should be transformed to:
variable_1: a, variable_2: b, variable_3: c, variable_4: d and so on...

I assume it should be done by combining the substring and foreach
command.

Hope that someone can help,

Thanks in advance
Andri

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