I am trying to use parLapplyLB to read excel files
file.list <- list.files(path="folder path", pattern="*.xlsx", full.names=TRUE)
test <- parLapplyLB(cl, file.list, function(x){
readxl::read_excel(x, sheet=sheet_in_file)
}
My problem is that each file in file.list has a different "sheet" name that I need to read. For e.g. in file1, I need to read sheet = "abc", in file2, need to read sheet = "xyz" etc.
I tried few things but I have not been able to achieve this, is there a way to do it using parLapplyLB?