Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: Data management question


From   "Susan Olivia" <[email protected]>
To   [email protected]
Subject   st: Data management question
Date   Wed, 15 Jul 2009 18:26:02 -0700

Dear Stata lister,

I have a variable (say number of days) and is a string
variable. This variable is represented by XXXX (basically
the number of X denotes the number of days). 

I would like to create a numeric value for this variable
(i.e. 4 crosses = 4) . Is there a way I can easily do this
in Stata? I tried the 'encode' and 'destring' commands, but
these commands didn't do what I after. 

Thanks in advance for the tips,

Susan


*
*   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–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index