There is no reason to assign get(symbol[i])
to a temporary object, or to even use get
in the first place. As it says in ?save
, you can use list=
to specify the name of an object to save.
e = ".xts"
for (sym in symbols){
save(list = sym, file = paste0(dataFLD, Sys.Date(), sym, e))
}