I'm trying to merge two datasets based on a string variable; but the string variables don't match exactly. I further need to do this by group. For instance, if this was my first data set:
Name | Age | City | ||
John Smith | 45 | New York | ||
Jane Doe | 24 | New York | ||
John Smith | 30 | New Orleans |
Name | Sex | City |
Smith, John Q | M | New York |
Jane Doe | F | New York |
Smith, John | M | New Orleans |
I tried to append the two datasets and then used matchit, but I don't know how to group by city. I'd be super grateful for any help!!
0 Response to Using Matchit
Post a Comment