Statalist


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

st: RE: How to transpose column into row?


From   "Nick Cox" <[email protected]>
To   <[email protected]>
Subject   st: RE: How to transpose column into row?
Date   Mon, 24 Aug 2009 21:41:10 +0100

. ssc desc sxpose 

Nick 
[email protected] 

ZoeW

I have 2 variables (in column) with 10 observations (rows). They are all strings. Now I want to transpose them. Tried to use xpose, but all the strings were turned into missing. I want to keep the strings as is. 

Example:
Column1              C2              
Name               XXYY         
YEAR                  37
Gender               female

I want to change them into 
Name                    Year                      Gender …..
XXYY                   37                           female


*
*   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–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index