Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: Listtex: headlines and append


From   "Friedrich Huebler" <fhuebler@gmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: Listtex: headlines and append
Date   Tue, 7 Aug 2007 09:43:04 -0400

Herve,

Are you using the latest version of -listtex- of 21 February 2007?
-listtex- can either write a new file with the -using- option or add
text to an existing file with -appendto-. You cannot have -using- and
-appendto- in the same command.

. sysuse auto
. listtex make using table_countries if foreign==1, rstyle(tabdelim)
headlines("sample39_absence") replace
. listtex make if foreign==1, rstyle(tabdelim)
headlines("sample32_absence") appendto(table_countries)

Friedrich

On 8/6/07, =3D?iso-8859-1?B?TOogVC4gVuJuIFRy7G5o?=3D
<lethivantrinh@yahoo.com> wrote:
> Hi Herv=E9
>
> Re question 2, please try
>    listtex name if sample32_absence=3D=3D1, rstyle(tabdelim)
> headlines("sample32_absence") appendto(table_countries)
>
> (using is exclusive of appendto)
>
> The command in q1 seems fine to me, I don't know why you didn't get
> the result you wanted.
>
> Trinh
>
> --- In statalist@yahoogroups.com, "Herve STOLOWY" <stolowy@...> wrote:
> >
> > Dear All:
> >
> > I have two questions concerning -listtex- (downloadable from ssc).
> >
> > I want to export two variations of a list of countries.
> >
> > Question 1: Headlines
> >
> > With the following command, I would like to get a column title:
> "sample39_absence" above the first list of countries.
> >
> > listtex name using table_countries if sample39_absence=3D=3D1,
> rstyle(tabdelim) headlines("sample39_absence") replace
> >
> > I get the countries but no title.
> >
> > Question 2: Append
> >
> > I would like to append the second list of countries below the first
> one. I use the following command:
> >
> > listtex name using table_countries if sample32_absence=3D=3D1,
> rstyle(tabdelim) headlines("sample32_absence") appendto(table_countries)
> >
> > I get the following error message:
> >
> > file table_countries.raw already exists
> >
> > I thank you for your help.
> >
> > Best regards
> >
> > Herv=E9 Stolowy
*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   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