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

Re: st: getting a list into a macro

From   Nick Cox <[email protected]>
To   [email protected]
Subject   Re: st: getting a list into a macro
Date   Fri, 26 Sep 2008 14:49:32 -0500

forval i = 1/`=_N' {
	local richslongmacro `richslongmacro' `=myvar[`i']'

I assume no embedded spaces within values: signal if otherwise.

[email protected]

Richard Goldstein wrote:

I have a string variable that is 6 characters long -- about 100 observations

I want to get each value into one long macro with spaces between each value -- how can I do that?
*   For searches and help try:

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