I tried merging 2 dataframes. But few observations are getting duplicated.
library(tidyverse)
data1<-tibble::tribble(
~duration, ~enumerator, ~en_name, ~survey_date, ~child_name, ~child_age2, ~l1c1_identify_pic1, ~l1c1_identify_pic2, ~l1c1_identify_pic3, ~l1c1_identify_pic4, ~l1c1_identify_pic5, ~l1c1_identify_pic6, ~l1c1_classify_bird, ~l1c1_classify_animal,
2885L, "PEN008", "Seemakausar Nadaf", "24-09-2021 00:00", "Sharat Mangoji", 6L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L,
2438L, "PEN006", "Jayashree H Malipatil", "24-09-2021 00:00", "Devaraj C Tallur", 6L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L,
1686L, "PEN003", "Jyoti T Patil", "24-09-2021 00:00", "Roshan begum", 6L, 1L, 1L, 0L, 1L, 1L, 1L, 1L, 0L,
1409L, "PEN008", "Seemakausar Nadaf", "24-09-2021 00:00", "Samrth", 6L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L,
1825L, "PEN004", "Viranna Potadar", "24-09-2021 00:00", "Sanjay irappa dusad", 6L, 1L, 1L, 1L, 1L, 0L, 1L, 0L, 0L,
2505L, "PEN002", "Hemalata B. Bhajantri", "24-09-2021 00:00", "Mahatmappa", 6L, 1L, 1L, 1L, 1L, 1L, 1L, 0L, 0L,
1872L, "PEN009", "Savita Vandal", "24-09-2021 00:00", "Soubhagya", 6L, 1L, 1L, 0L, 1L, 1L, 1L, 1L, 1L
)
data2<-tibble::tribble(
~child_name, ~l1en1_recog_num1, ~l1en1_recog_num2, ~l1en1_recog_num3, ~l1en1_recog_num4, ~l1en1_recog_num5,
"Sharat Mangoji", 1L, 1L, 1L, 1L, 1L,
"Devaraj C Tallur", 1L, 0L, 0L, 0L, 1L,
"Roshan begum", 1L, 1L, 1L, 1L, 1L,
"Samrth", 1L, 0L, 0L, 1L, 0L,
"Sanjay irappa dusad", 0L, 0L, 0L, 0L, 0L,
"Mahatmappa", 1L, 0L, 0L, 1L, 0L
)
combine1<-left_join(data1,data2,by="child_name")
combine1
#> # A tibble: 7 x 19
#> duration enumerator en_name survey_date child_name child_age2 l1c1_identify_p~
#>
#> 1 2885 PEN008 Seemak~ 24-09-2021~ Sharat Ma~ 6 1
#> 2 2438 PEN006 Jayash~ 24-09-2021~ Devaraj C~ 6 1
#> 3 1686 PEN003 Jyoti ~ 24-09-2021~ Roshan be~ 6 1
#> 4 1409 PEN008 Seemak~ 24-09-2021~ Samrth 6 1
#> 5 1825 PEN004 Virann~ 24-09-2021~ Sanjay ir~ 6 1
#> 6 2505 PEN002 Hemala~ 24-09-2021~ Mahatmappa 6 1
#> 7 1872 PEN009 Savita~ 24-09-2021~ Soubhagya 6 1
#> # ... with 12 more variables: l1c1_identify_pic2 ,
#> # l1c1_identify_pic3 , l1c1_identify_pic4 ,
#> # l1c1_identify_pic5 , l1c1_identify_pic6 ,
#> # l1c1_classify_bird , l1c1_classify_animal ,
#> # l1en1_recog_num1 , l1en1_recog_num2 , l1en1_recog_num3 ,
#> # l1en1_recog_num4 , l1en1_recog_num5
Created on 2021-11-08 by the reprex package (v2.0.1)