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

st: RE: destring with embedded blanks

From   "David Harrison" <>
To   <>
Subject   st: RE: destring with embedded blanks
Date   Thu, 3 Mar 2005 14:21:11 -0000

What do you want these values to become once it is numeric?
10216 and 112116? If so:

gen id_numeric=real(subinstr(ID," ","",.))

Or something more complicated?


-----Original Message-----
From: Harounan Kazianga []
Sent: 03 March 2005 14:14
Subject: st: destring with embedded blanks

Dear list members,
Could someone help me with converting string variables
with embedded  blanks.

 Let say I have:
 1 02 16
 1121 16

 Where ID is a string variable and I want to convert
 it  in numeric.  How do I proceed?

 Thank for your help.

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

*   For searches and help try:

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