My data are similar to the following data. Note some two surnames or names which I did not mentioned here
df1<-read.table(text= "id Surname Name
1234 Hamidsar Smith
139 Sandarscom Vicky
234 Bates May
100 Murphu Beki
941 Jool Susan
469 Sali John
990 susai Alison",header=TRUE)
The another data frame is as follows:
df2<-read.table(text= "id Surname Name
990 susai Anis
81B Rosak Roy
340 Molipoor Vicky
139 Bates May
941 Ameri David
990 susai Alison
139 Bates May
101 CICI Beki
139 Sandarscom Vicky
1234 Hamidsar Smith",header=TRUE)
I want to map id , surname and name to get the following table
id Surname Name Map
1234 Hamidsar Smith id,Surname,Name
139 Sandarscom Vicky id,Surname,Name
234 Bates May Surname, Name
100 Murphu Beki Name
941 Jool Susan id
469 Sali John NA
990 susai Alison id,Surname,Name
Is it possible to get it ? I read some links, but they did not help me