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: Re: Drop variables based on variable label

From   Shubhabrata Mukherjee <>
To   stata forum <>
Subject   st: Re: Drop variables based on variable label
Date   Wed, 28 Dec 2011 09:42:40 -0800 (PST)

Yes. This is indeed a very neat trick. Thanks a lot guys...!!!


----- Original Message -----
From: Shubhabrata Mukherjee <>
To: stata forum <>
Sent: Tuesday, December 27, 2011 9:01 PM
Subject: Drop variables based on variable label

Hi All,

 Is there a way to drop variables based on variable label?

 I have some variables (which are redundant) whose variable label start with 'rs'.


var     label

v1      rs12

v2      s13

v3      rs14
v4      rs17
v5      s15

I want to drop the variables whose label starts with rs (v1, v3, v4,...).

Any help is appreciated.



*   For searches and help try:

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