Hello,
I have listed the files from a directory. How can I attach the path to the file names?
old_files <- list.files(paste("~/Development/glycoPipeApp/OUT/openMS/INPUT_DATA/INPU_DATA_OUT/", old_file[i], sep = ""), pattern = "[0-9].csv"))
#Now I need to add the path to the files. I started by using a loop
for(i in 1:length(old_files)){
old_path[i] <- paste("~/Development/glycoPipeApp/OUT/openMS/INPUT_DATA/INPU_DATA_OUT/", old_files[i], sep = "")
}
#but it does not work. Ir produces and extra path, with an NA attached to it in place of the file name.