Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: List command


From   "Radu Ban" <raduban@gmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: List command
Date   Wed, 30 Jul 2008 13:35:30 -0400

to beat on a muribund horse...

I think the condition... if (strpos, x, "TAG") == 1 may also work

P.S. clearly a lot of people are on vacation these days and some of
them haven't set their out of office reply properly



2008/7/30, David Kantor <kantor.d@att.net>:
> 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/
>


-- 
picasaweb.google.com/raduban
*
*   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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index