[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]
RE: st: How to rename variables by adding a suffix
No; it is not on SSC.
-search renvars- shows
that it is in the STB-60 files. Note carefully that
the version of -renvars- in STB-60 was written
by Jeroen Weesie and myself, and supersedes
the version still on Jeroen's website.
The latter remains of use to people still
on Stata 6.
show the difference.
> -renvars- by Jeron Weesie will do this. findit renvars will
> find it for
> installation, as I don't think it is on ssc
>I have a simple question. How do I add a suffix to all
> variables in my
> >dataset. So suppose I want the variables WHEAT, MAIZE, CEREAL to be
> >renamed to FOOD_WHEAT, FOOD_MAIZE, and FOOD_CEREAL. I can't use the
> >command * renpfix * because it only allows you to change
> one suffix for
> >another, such as to change GRAINWHEAT to FOOD_WHEAT by
> typing the command
> >renpfix grain food_
> >I could do this manually, but when I want to add the suffix
> food to, say,
> >80 variables that becomes tedious. Any ideas?
* For searches and help try: