I have in one directory files with the extension part_a.csv and files with the extension part_b.csv. I want to merge them into two separate files. I tried to do it with a real bulk. At first, I merge all files into one file and then split with 'filter' into two separate files. The problem is that both groups have an RT column that actually relates to two different variables. So that the merged data files merge the results into a single column. Does anyone have a suggestion what can I do? This is the code I wrote (which does not match the situation):
MergeAll <- read_bulk(extension = '.csv') #Merge all files
MergePartB <- MergeAll %>% filter(grepl('part_b.csv',File))
MergePartA <- MergeAll %>% filter(grepl('part_a.csv',File))