Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: Dealing with string variables


From   smerryman@kc.rr.com
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: Dealing with string variables
Date   Wed, 10 Nov 2004 09:40:22 -0600

----- Original Message -----
From: TEWODAJ MOGUES <tmogues@students.wisc.edu>
Date: Wednesday, November 10, 2004 9:31 am
Subject: st: Dealing with string variables

> Dear Statalisters,
> 
> For the longest time I have been trying to find ways around 
> certain 
> commands that would involve string variables, but I can't believe 
> that 
> these commands really don't exist. Hence my question: For example, 
> if "grain" is a string variable, how do I do an operation such as 
> "drop 
> if grain==wheat"? 
<snip>

drop if grain == "wheat"


Scott


*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index