Dynamically converting a list of Excel files to csv files in R -


i have folder containing excel (.xlsx) files, , using r automatically convert of these files csv files using "openxlsx" package (or variation). have following code convert 1 of files , place in same folder:convert("team_order\\team_1.xlsx", "team_order\\team_1.csv")

i automate process files in folder, , removes current xlsx files, csv files remain. thanks!

you can try using rio, since seems that's you're using:

library("rio") xls <- dir(pattern = "xlsx") created <- mapply(convert, xls, gsub("xlsx", "csv", xls)) unlink(xls) # delete xlsx files 

Comments

Popular posts from this blog

c# - Validate object ID from GET to POST -

node.js - Custom Model Validator SailsJS -

php - Find a regex to take part of Email -