Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
st: reading dataset if
From
Emmanuelle Lavaine <[email protected]>
To
[email protected]
Subject
st: reading dataset if
Date
Wed, 21 Sep 2011 23:46:41 +0200
Dear Statalisters,
I have a huge dataset and I would like to get rid of some observations
when opening it.
I want to open my dataset only if the first character corresponds to
'I' or 'J'
for the string variable 'diagp', I have something like:
diagp
I236
I256
I52
J46
J856
H343
etc..
I tried:
use 'dataset.dta' if diagp=="[I-J]*"
But I am doing something wrong and I can't figurate it out.
Thanks for your help
Emma
--
Ce message a ete verifie par MailScanner
pour des virus ou des polluriels et rien de
suspect n'a ete trouve.
*
* 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/