Statalist


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

Re: st: How to transpose columns into rows?


From   "Joao Ricardo F. Lima" <jricardofl@gmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: How to transpose columns into rows?
Date   Wed, 26 Aug 2009 11:12:05 -0300

Zoe,

cant you use -reshape- with the string option?

HTH,

Joao Lima

2009/8/24 ZoeW <qingfw@yahoo.com>:
> How to transpose column into row?
>
> I have 2 variables (in column) with 10 observations (rows). They are all strings. Now I want to transpose them. Tried 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
>
> Thanks,
> Zoe
>
>
>
>
> *
> *   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/
>



-- 
----------------------------------------
Joao Ricardo Lima, D.Sc.
Professor
UFPB-CCA-DCFS
Fone: +5538387264913
Skype: joao_ricardo_lima
----------------------------------------

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