I have a vector with the names of multiple csv files.
library(readr)
data<-c("categories.csv",
"customers.csv",
"employees.csv",
"employee_territories.csv",
"order_details.csv",
"orders.csv",
"products.csv",
"regions.csv",
"shippers.csv",
"suppliers.csv",
"territories.csv")
and I would like to load all of them with a for
loop in my workspace.
My first try was
i<-1
for (i in data) {
read_csv(data("i"))
}
maybe someone can help me.