I am importing a list of csv files from a directory, and I have to map these csv files to some excel file that has the annotations (ie which columns should be included, what genotype was used for each column)
currently I have a loop which generates a bunch of variables for the csv files using
assign(paste0(dirname,'-',csvname[i]), read.csv(paste0(datedir,'/',csvname[i])))
and a loop for a bunch of excel files usigng
assign(paste0(dirname,'_', timefolder), read.xlsx(paste0(timedir,'/',excelname[i]), sheet = 2))
Now I would like to create another loop where I iterate through the excel files, read the description and annotate the csv files based on those descriptions (ie, change the column name to the genotype listed in one of the excel files)
I don't know how to read through all the variables generated iteratively. I've tried to store the variable names as string list, but I can't use or evaluate it.
Any suggestions?