Statalist The Stata Listserver


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

st: string function


From   Andy Choi <[email protected]>
To   [email protected]
Subject   st: string function
Date   Wed, 8 Mar 2006 13:50:56 -0800 (PST)

I have a large file with patient's labs.  The lab
variable contains the lab result (a number) with the
units (for example mg/dl) included.  There are many
variations to the way the units are reported: they may
be capitalized or in parentheses or the units
themselves may contain numbers. 

I would like to create a variable that includes only
the lab result.  And if possible a separate variable
with the units.

Thanks,
Andy


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
*
*   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/



© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index