I have a folder with few hundred CSV files. What would be the easiest way to convert these to XLS format using R?
(Yes, I know CSV is Excel-compatible but I still ha
Use the package xlsReadWrite to export to xls:
xlsReadWrite
library(xlsReadWrite) filenames <- list.files("[path_name]", pattern="*.csv", full.names=TRUE) for(i in 1:length(filenames)){ a <- read.csv(filenames[i]) write.xls(a, paste("file",i,".xls", sep="")) }