Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: insert obs of one file at the beginning of another file


From   Daniel Müller <d.mueller@agr.uni-goettingen.de>
To   "Statalist" <statalist@hsphsun2.harvard.edu>
Subject   st: insert obs of one file at the beginning of another file
Date   Fri, 22 Nov 2002 19:49:22 +0100

I would like to insert observations (format: %12s) of one
variable of a file with 10 obs <head.dta> at the beginning
of several variables (converted to strings) of another file
<boss.dta> and shift the remaining observations from
<boss.dta> these 10 obs back. I appended <head.dta> to
<boss.dta>, then replaced every empty observation at the end
of <boss.dta>. But here I get stuck. How can I efficiently
put the string variables from the end to the beginning?

P.S.: Speed is an issue as <boss.dta> has 1.7 mio obs!

Help would be appreciated,
greetings,

---  Daniel  ---
danielix@gmx.net


*
*   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