I have two data sets as following below.
Data set 1 is a list of company names.
Name
Apple
Google
Amazon
Data set 2 has the following variables.
ID Year1 USname nameO Country Year2
01 1992 Apple Apple | Ford US 1993
02 1993 Alphabet Toyato | Amazon US 1995
03 1994 Amazon.com Amazon US 1996
04 1995 Alphabet Google US 1997
05 1996 IBM IBM US 1998
Name in data set 1 is the same with nameO in data set 2 (Google) or Name in data set1 is partly same with nameO in data set 2 (Apple).
What I want is to match these two data sets as long as NameO is partly same with Name.
Expected
ID Year1 USname nameO Country Year2 name
01 1992 Apple Apple | Ford US 1993 Apple
02 1993 Alphabet Toyato | Amazon US 1995 Amazon
03 1994 Amazon.com Amazon US 1996 Amazon
04 1995 Alphabet Google US 1997 Google
What code do I need to use? Thanks a lot!