Statalist The Stata Listserver


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

RE: st: String vector


From   "Hendri Adriaens" <[email protected]>
To   <[email protected]>
Subject   RE: st: String vector
Date   Mon, 30 Apr 2007 22:23:02 +0200

Hi Michael,

> Your code:
> 
> local groep="lft"+string((`y'-1)*5)+"_"+string(`y'*5)+`gesl';
> 
> will not work since +`gesl' at the end is expanded to +_m, 
> and Stata doesn't 
> know what _m is.  Try
> 
> local groep="lft"+string((`y'-1)*5)+"_"+string(`y'*5)+"`gesl'";
> local sterfte="stf"+"`gesl'";
> 
> although this last line can be just
> 
> local sterfte="stf`gesl'";

Ah, ok, thanks a lot! It seems to be a rather trivial thing after all...

Best,
-Hendri.


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