Statalist


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

RE: st: List command


From   "Daniel Sepulveda-Adams" <sepul003@umn.edu>
To   <statalist@hsphsun2.harvard.edu>
Subject   RE: st: List command
Date   Wed, 30 Jul 2008 12:41:16 -0500

"TAG" is in the beginning of the values

Daniel A. Sepulveda Adams
Research Scientist - PRIME Institute
College of Pharmacy - University of Minnesota
308 Harvard ST SE, Weaver Densford Hall, 7-159
Minneapolis, MN, 55455, USA
Phone: 612-624-8489
Cell Phone: 651-295-7771
Fax: 612-625-9931
Email: sepul003@umn.edu

-----Original Message-----
From: owner-statalist@hsphsun2.harvard.edu
[mailto:owner-statalist@hsphsun2.harvard.edu] On Behalf Of Nick Cox
Sent: Wednesday, July 30, 2008 12:29 PM
To: statalist@hsphsun2.harvard.edu
Subject: RE: st: List command

That is not a correct answer to the question asked. This selects values
containing "TAG" anywhere within the name. 

Nick
n.j.cox@durham.ac.uk 

Radu Ban

look at the -strpos- function (among string functions). in your case
what you may need is

List [name of the variable] if strpos(x, "TAG") ~= 0

008/7/30, Daniel Sepulveda-Adams <sepul003@umn.edu>:

> Thank you, now if I need all the subject that start with TAG

*
*   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/

*
*   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