Statalist The Stata Listserver


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

RE: st: Appending several files


From   "Nuno Soares" <[email protected]>
To   <[email protected]>
Subject   RE: st: Appending several files
Date   Sat, 14 Oct 2006 13:42:08 +0100

Thanks Ulrich! 

-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Ulrich Kohler
Sent: 14 October 2006 13:13
To: [email protected]
Subject: Re: st: Appending several files

On Saturday 14 October 2006 13:42, Nuno Soares wrote:
> foreach f in `r(files)' {
> append using `f'
> }

. fs *.dta
. local firstfile: word 1 of `r(files)'
. use `firstfile', clear
. foreach f in `r(files)' {
.   if "`f'" ~= "`firstfile'" append using `f'
. }

--
[email protected]
+49 (0)30 25491-361
*
*   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/

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