|  | 
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]
Re: st: List command
From 
 
David Kantor <[email protected]> 
To 
 
[email protected] 
Subject 
 
Re: st: List command 
Date 
 
Wed, 30 Jul 2008 13:27:28 -0400 
Radu'd advice,,,
List [name of the variable] if strpos(x, "TAG") ~= 0
will yield any case that includes "TAG" in x. If you want only the 
ones that begin with "TAG", the condition should be
 ... if substr(x, 1, 3) == "TAG"
--David
*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/
| © Copyright 1996–2025 StataCorp LLC | Terms of use | Privacy | Contact us | What's new | Site index |