I have 20 files named 1.csv, 2.csv, 3.csv etc, which I want to read into R and merge using rbind using a loop. I've tried the code below but I get an error message saying unexpected "[" in the second line.
for (i in 1:22) {
fish[i] <- read.csv([i].csv)
combined <- rbind(fish[i], fish[i+1])
}