I am trying to import a folder full of multiple .csv files in R and read 2nd and 3rd columns of all the files. I have used the following command, but it throws an error saying "Error in file(file, "rt") : invalid 'description' argument The code is here
folder <-"C:\\\\Users\\USER\\Desktop\\LABWORK\\ECGV0007_everyRRQTinputIntoEntropy_csv"
file_list <- list.files(path=folder, pattern="*.csv")
for (i in 1:length(file_list)){
assign(file_list[i],
x <-read.csv(paste(folder, file_list[i], sep=" ",
fill=TRUE, colClasses=c('null', 'numeric', rep('null',6)))),
y <-read.csv(paste(folder, file_list[i], sep=" ",fill=TRUE, colClasses=c(rep('null',2), 'numeric', rep('null',5))))
)}
assign
. – joran