I have been programming in R for around 18 months now and have also played a mentor role for freshers in the company i work for, teaching them to use R in their work. Find below a simple exercise example for merge(), i can make more complicated ones if needed.
# Below are two data frames with one Id column common and
# one column different ( Ti and Bi) use this data to demonstrate an inner join,
# outer join, left join and right join
a <- [login to view URL](Id = sample (letters[1:7],5,replace = T),
Ti = sample (1:10,5,replace = T))
b <- [login to view URL](Id = sample (letters[1:7],3,replace = T),
Bi = sample (1:10,3,replace = T))
# Solution
# left join
c <- merge(a, b, all.x = T)
# right join
d <- merge(a, b, all.y = T)
# full join
e <- merge(a, b, all = T)
# inner join
f <- merge(a, b, all = F)