[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]
st: Merge Problem
Would someone kindly help me with this problem?
I'm trying to join two datasets. The matching is one to many. Let's call
identifiers in the two datasets id1 and id2. I have a concordance of the
form (all variables are string):
The problem is where I have an entry for id2 like 51--. This means all
four digits that start with 51 should be matched to the id1 value of 112.
Likewise, 411- means all four digits starting with 411 correspond to 113.
If I had just one entry like that, then I could go into dataset2 and
create another id variable for which all id2s starting with 51 or 411 have
the same value, and come back and make the appropriate change in the
concordance. But I have many cases like this where many id2s match with
id1. Would there be an easy way to take care of this? Perhaps some way to
automate the creation of an alternative id2 in the second dataset?
Thank you very much for your help.
* For searches and help try: