Dear Statalisters,

I'm wondering if there is a possibility like compound double quotes for single quotes used in locals. Here is what I am doing in a pretty crude example:

Code:
loc text=""
forvalues i=1(1)2 {
      loc t1="var_`i'"
      loc text="`text' `t1'[`r']"
}
I would like to get this:
loc text= var_1[`r'] var_2[`r']

So that I can use it in another loop over r.

But no matter what I try, it doesn't seem to be possible to write `r' into a new local without Stata directly replacing it by the not-existing local r.

Thanks a lot for your help,
Anna