Statalist The Stata Listserver

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

st: string function

From   Andy Choi <>
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.


Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
*   For searches and help try:

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