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/