In R, I am making a function that requires reading in 1:n csv files, how to I name each file in a "for" loop and save.  I have tried test[i] <- read.csv(paste0("0", "0", i, sep="") and I get a "closure" error.  I have searched through Stack Overflow and found similar questions but nothing like I am looking for. I am using also 1 "if" statement and two "else if" statements in the "for" loop.  There are 3 different paste0 functions, paste0("0", "0", i, ".csv", sep = ""), paste0("0", i, ".csv" sep = ""), and paste0(i, ".csv", sep "")
I just signed up to Stack Overflow today and I am new to R. I am sorry if I overlooked the question and it has been answered.
What I am looking for is something like name_test[1] <- 001.csv and so on.
 
     
     
    