How to merge two lists in R based on "business_id" and "type" variables. Tried a few options but they did not work including converting them into dataframes and trying to merge them using merge function.
The lists are
LIST1
$ :List of 5
..$ business_id : chr "ABC"
..$ full_address : chr "DEF"
..$ hours : chr "4-6PM"
..$ open : logi TRUE
..$ type : chr "business"
LIST2
$ :List of 3
..$ checkin_info:List of 3
.. ..$ 7-6 : num 1
.. ..$ 15-0: num 1
.. ..$ 15-3: num 1
..$ type : chr "business"
..$ business_id : chr "ABC"
The result should be
MERGED LIST $ :List of 6 ..$ business_id : chr "ABC" ..$ full_address : chr "DEF" ..$ hours : chr "4-6PM" ..$ open : logi TRUE ..$ type : chr "business" ..$ checkin_info:List of 3 .. ..$ 7-6 : num 1 .. ..$ 15-0: num 1 .. ..$ 15-3: num 1