Statalist


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

st: Rename


From   Ronnie Babigumira <rb.glists@gmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   st: Rename
Date   Thu, 07 Aug 2008 17:10:45 +0700

Dear Listers
How do I rename some variables by switching letters around.

As an example, I would like to rename r1k4 r12k4 to k4r1 and k4r12, so take the last two characters and put them at the beginning and put whatever is left at the end.

Many thanks

Ronnie
*
* 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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index