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

st: RE: [numeric to string]

From   "Nick Cox" <>
To   <>
Subject   st: RE: [numeric to string]
Date   Fri, 22 Nov 2002 18:10:38 -0000

Chau Do
> What is the command to change a numeric variable to a 
> string variable? i
> have looked in the help menu and faq, but have only found 
> commands for the
> other way around; i.e, numeric into string. i have tried 
> the decode but i
> believe that this is the wrong command, or at least it 
> gives me an error
> message when i try it.

Various suggestions were made: 

-tostring-, a user-written ado 

-string()-, an official Stata function. 

There is a more general review of this territory 
in Stata Journal 2(3), 314-329 (2002) under
the heading "On numbers and strings". 

*   For searches and help try:

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