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"? Similarly, how do I create value labels for string
variables. For example, if I want the variable "grain" to have the
value label "crop" when it takes on the value "wheat" and "barley"? I
would be delighted if I didn't have to find laborious ways of data
manipulation where dealing directly with the string variables would be
much easier.
Thanks,
Tewodaj
~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~
Tewodaj Mogues
Dept. of Agricultural and Applied Economics
University of Wisconsin - Madison
427 Lorch St. #317, Taylor Hall
Madison, WI 53706
*
* 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/