Skip to content
Prev 388548 / 398513 Next

assign a data frame name from a list in do loop

Hello,

Just before for(j in 1:nrow(ora)) include the following code line (I 
have removed the underscore):

sdif <- vector("list", length = nrow(ora))


In the loop:

sdif[[j]] <- sqldf(etc)



Also, once again, why noquote? It's better to form file names with 
file.path:


rdcsv? <- file.path("w:/project/_Joe.B/Oracle/data", mycsv)


Hope this helps,

Rui Barradas


?s 16:55 de 14/07/2021, Kai Yang via R-help escreveu: