Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down at the end of May, and its replacement, statalist.org is already up and running.


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

Re: st: outsheet throws away varnames in unix


From   Joerg Luedicke <joerg.luedicke@gmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: outsheet throws away varnames in unix
Date   Thu, 20 Sep 2012 16:17:18 -0500

This is more than likely some problem at your end.

The following example:

*----------------------------------------------
clear
set obs 5
gen x1=runiform()
gen x2=runiform()
outsheet using test, comma replace
*----------------------------------------------

yields the exact same result (wrt variable names), whether it is run
in Windows 7 or a Linux system (Fedora 17 in this case).

J.


On Thu, Sep 20, 2012 at 3:51 PM, tashi lama <ltashi32@hotmail.com> wrote:
> Hello all,
> In windows
>  outsheet using tt, comma generates a comma delimited text file with variable names in the first line. Great.
>  type,hits
> 0,7881
> 1,8237
> |
>
> In unix
>  outsheet using tt, comma generates a comma delimited text file with variables names left out. The file only contains data.
>   0,7881
>   1,8237
>
> I am sure this is yet another platform issue. Could someone know the solution to also get varnames along with data in unix??
>
> Thanks,
> Tashi
>
> *
> *   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/


© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index