Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: RE: String to Numeric


From   "Nick Cox" <[email protected]>
To   <[email protected]>
Subject   st: RE: String to Numeric
Date   Thu, 31 Jul 2003 13:17:17 +0100

metienne

> My question is, how do I change a string variable to a 
> numeric variable. I am using STATA version 7.

Consider whether you really want -encode-; otherwise 
it is a choice between 

	-real()- function (brutal, stupid) 

and 

	-destring- (gentle, smart) 

Nick
[email protected] 



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