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

st: RE: Converting string into numeric and vice versa


From   "de la Garza, Adrian" <[email protected]>
To   <[email protected]>
Subject   st: RE: Converting string into numeric and vice versa
Date   Thu, 20 Nov 2003 11:10:08 -0500

string(n) converts n into a string.

For help, type:
- help string

Alternatively, you can convert hh_id in your main file to number format.
Check the command -destring-.

Best,
Adrian

> -----Original Message-----
> From: [email protected] [mailto:[email protected]] 
> Sent: Thursday, November 20, 2003 11:07 AM
> To: [email protected]
> Subject: st: Converting string into numeric and vice versa
> 
> 
> I am trying to merge two files using hh_id.
> 
> In the main file, hh_id is string
> 
> In the other one, hh_id is long
> 
> 
> How do I convert the latter into former?
> 
> 
> -Ekta
> 
> 
> *
> *   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/
> 

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