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: string to numeric format


From   Calchas Calchas <[email protected]>
To   <[email protected]>
Subject   st: string to numeric format
Date   Sat, 6 Mar 2010 19:31:31 +0000

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/


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