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

st: Re: selective merge


From   Christopher F Baum <[email protected]>
To   [email protected]
Subject   st: Re: selective merge
Date   Mon, 1 Sep 2003 09:18:45 -0400

On Monday, September 1, 2003, at 02:33 AM, Mike wrote:


What if I have other variables besides city and income in dataset A and dataset
B (and they are different variables in each dataset) but I only want to merge
in the matching incomes from dataset B to replace the incorrect ones in dataset
A (i.e. I want to leave alone the rest of the variables in dataset A)?

Then make a copy of dataset B, keep only the desired variables (city and income?), sort it appropriately, save it as Bpartial, and follow the prior instructions with Bpartial in place of B.

Kit

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