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

st: Changing variable names

From   "Andri Rauch" <>
To   <>
Subject   st: Changing variable names
Date   Wed, 11 Jun 2008 10:40:07 +0200

Dear all,
I should increase the numbering in my variable names by a certain value (eg 55)
Eg: r1, r2, r3, r4, r5... should read r56, r57, r58, r59, r60...

Hope somebody can help.
Thanks in advance,

-----Ursprüngliche Nachricht-----
Von: Andri Rauch 
Gesendet: 26 March 2008 12:12
An: ''
Betreff: Creating single characters from long strings

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

*   For searches and help try:

© Copyright 1996–2017 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index