Hello, I have a series of varnames named year2010A | year2010B | ... | year2011A | year2011B | ...
I want to rename these (so that ultimately I can reshape) to A2010, B2010, ... , A2011, B2011, etc.
How can I so this?
I have tried multiple loops, local names, and substr()'s but I cannot get the final outcomes.
Thank you very much in advance!
Related Posts with Flipping (renaming) a string
stratified panelDear all, I have what I assume to be a stratified panel data (i.e. daily data on 3 cities, for each …
Difference between sampsi, pre() and power repeatedDear Statalist, I'm wishing to calculate a sample size based on the comparison of means between two…
[FMM] Estimating centiles/graphing density of a single observationDear Statalisters, I want to estimate centiles for a single observation after using a finite mixtur…
Model selection/comparing model fit in a quasi likelihood model (i.e., Poisson w/robust standard errors)Dear all, I am modelling household water use data (i.e., total annual household water use). The dis…
Suppress repeated cat axis when using -graph bar, by()-What is the easiest general way to suppress a repeated category axis when using -graph bar, by()-? I…
Subscribe to:
Post Comments (Atom)
0 Response to Flipping (renaming) a string
Post a Comment