I have a small problem but I cannot manage to figure it out.
I have 2 list of multiple tibbles generated by using dplyr read.xlsx function. Now i want to merge the first element of each list with each other using the left_join function and by the name of a shared column, that means that the tibbles in both lists share a column named Study File ID
. So i want to merge each element of each list with each other using left_join by=c(Study File ID
= Study FIle ID
) for instance. I know how to merge a single list with Tibble dataframes but not using each element of 2 lists. Hopefully someone can help me
files_all_compounds <- list.files("~/Internship/Internship/Script/Results - Excel files/Script_map", pattern = '*CompoundsPerFile_ML*')
input_files <- list.files("~/Internship/Internship/Script/Results - Excel files/Script_map", pattern = '*inputfiles_ML*')
setwd("~/Internship/Internship/Script/Results - Excel files/Script_map")
data_all_compounds <- lapply(files_all_compounds,read_xlsx)
data_input_files <- lapply(input_files,read_xlsx)
...