Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down on April 23, and its replacement, is already up and running.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: Batch renaming variables

From   Wameq Raza <>
Subject   st: Batch renaming variables
Date   Thu, 18 Oct 2012 15:36:13 +0200

Hi everyone,
I'm having some trouble trying to figure out how to do batch renames.
To elaborate, suppose I have 10 variables: v1, v2....v10 and I want to
rename every second var (ie v2, v4, v6, v8 and v10) to cost_a,
cost_b....cost_e. Can anyone please help me figure this out? I've
tried looking into renvars, but can't seem to figure it out.

W A M E Q   R A Z A
*   For searches and help try:

© Copyright 1996–2016 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index