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

RE: st: Re: Retrieving a master dataset after merging

From   "louis boakye-yiadom" <>
Subject   RE: st: Re: Retrieving a master dataset after merging
Date   Sat, 09 Apr 2005 17:16:18 +0000

Thanks for your comments, Michael. I dropped _merge, however, so it seems I can't retrieve the dataset. I probably just have to redo the changes I did to dataset A. Thanks.


From: "Michael Blasnik" <>

Well, I don't think you should ever save the new merged dataset on top of the master (i.e., don't use -save, replace-). If you follow this advice then you could just -use master-. Assuming you didn't follow this advice, you can retrieve the master dataset (if you didn't specify -update- as an option). Just type:

keep if _merge==1 | _merge==3
drop _merge

if the using dataset contains some variables not in the master dataset, you then drop those:

drop usingvar1 usingvar2 usingvar3...

Michael Blasnik

----- Original Message ----- From: "louis boakye-yiadom" <>
To: <>
Sent: Saturday, April 09, 2005 12:24 PM
Subject: st: Retrieving a master dataset after merging

Dear All,
After doing a -merge-, can one retrieve the master dataset? If yes, how can it be done? Thank you.


*   For searches and help try:

© Copyright 1996–2017 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index