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: RE: string to numeric format
From
"Martin Weiss" <[email protected]>
To
<[email protected]>
Subject
st: RE: string to numeric format
Date
Sun, 7 Mar 2010 18:21:46 +0100
<>
*******
h tostring
*******
HTH
Martin
-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Calchas Calchas
Sent: Samstag, 6. März 2010 20:32
To: [email protected]
Subject: st: string to numeric format
Hi,
New user of Stata - just started.
Just want to know how to change a column of numeric data to string data.
Say, 0,1,2,3,4,5,0 (numeric)
to
0,1,2,3,4,5,0 (string)
The resason why I am doing this is to, later on, change all the '0' into
'N'.
Also for a column of data, like:
0
1
2
3
4
5
0
how could I change it to row 0 1 2 3 4 5 0, i.e. a transpose? Is there a
clever way of doing it in the stata data editor? clearly not by re-typing
them as I have 65.5 thousand rows.
Many thanks
Calchas
*
* 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/
*
* 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/