Hi the following set of codes are to do a left join
rm(list=ls()) #Create dataframe df = data.frame(Year = c(2018,2019,2020, 2021, 2022,2023,2024),