Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: tostring for large double type variables?


From   Paul Burkander <[email protected]>
To   [email protected]
Subject   st: tostring for large double type variables?
Date   Mon, 8 Aug 2011 11:11:56 -0400

 I'm appending files over multiple years where the variable type
changes over time.  I have a variable that's a long string of numbers
(about 45 numbers) in some years, but which is stored as double in
other years.  I'd like to be able to store the variable as either a
string or double in the appended file, but I can't figure out a way to
use the tostring command that doesn't truncate the double variable.

 Is there an easy way to preserve the information and string the variable?

 Thanks,
 Paul

*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index