I'm currently working on generating synthetic. I have 2 dataframes. the first dataframe has 150 records of occupation type and the associated degree
df1
Occupation Degree
Biologist Masters
Cleaner High_School
Office Manager Bachelor
Software Eng. Bachelor
Data Scientist Phd
....
Data Scientist Masters
The other one is the main dataframe with about 100K records,
main df:
Name Degree
John Masters
Paul High_School
Mary Bachelor
Joseph Bachelor
Moses Phd
....
Helen Masters
I want to use the first df to assign occupation to the main dataframe base on the degree the individual has, but the degrees column on both dataframe are not unique.
Is there way in R to merge to dataframes without unique keys?