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

st: destring

From   "Seyda G Wentworth" <WentworthS@GAO.GOV>
To   <>
Subject   st: destring
Date   Wed, 22 Jun 2005 15:50:28 -0400

Dear stata,
I need to create a numeric variable (numvar) out of a string (stringvar) to be able to say things like:

sum x y z if numvar==5

The string variable is a code  with values such as 0107, 0256, etc. How can I make it numeric without loosing the "0" in front? In other words I want to keep all the digits.
Thank you.

*   For searches and help try:

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