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

Re: st: Dealing with string variables


From   [email protected]
To   [email protected]
Subject   Re: st: Dealing with string variables
Date   Wed, 10 Nov 2004 09:40:22 -0600

----- Original Message -----
From: TEWODAJ MOGUES <[email protected]>
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–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index