I'm trying to create some objects inside a loop. I'm using a loop because I want my objects' names to be same as the files in the data folder. The problem is that the loop just keeps the last one:
feather_files <- list.files("../R",pattern="\\.feather$")
for (i in length(feather_files)) {
assign(feather_files[i],read_feather(paste("../R/",feather_files[i],sep="")))
}
Does anybody know what I'm doing wrong?