Quantcast
Channel: Active questions tagged r - Stack Overflow
Viewing all articles
Browse latest Browse all 201839

Join of 2 dataframes [duplicate]

$
0
0

I have 2 dataframes and I want to join by name, but names are not written exactly the same:

Df1:

ID    Name       Age
1     Jose        13
2     M. Jose     12
3     Laura        8
4     Karol P     32

Df2:
Name         Surname
José           Hall
María José     Perez
Laura          Alza
Karol          Smith


I need to join and get this:

ID    Name       Age   Surname
1     Jose        13     Hall
2     M. Jose     12     Perez
3     Laura        8     Alza
4     Karol P     32     Smith

How to consider that the names are not exactly the same before to join?


Viewing all articles
Browse latest Browse all 201839

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>