Statalist The Stata Listserver


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

st: how to add specific letter to string macro


From   Oleksandr Shepotylo <[email protected]>
To   Stata <[email protected]>, Oleksandr Shepotylo <[email protected]>
Subject   st: how to add specific letter to string macro
Date   Mon, 08 May 2006 16:35:24 -0400

Dear Statalist users,

Suppose that I have a local macro

loc X = " a b c"

I want to create a local macro

loc WX="wa wb wc"

The problem is that I want to automate the process and write a code that will create `WX' based on string stored in `X'.

Can anyone help me with this?

Thanks,

Oleksandr Shepotylo.
*
* 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