Store multiple outputs from each iteration of a for loop
问题 Given a fix path and a very limited directories from year. I'm trying to obtain each combination of path between this initial combination ( fixPath - year ) and the different, non-fixed and non-equally quantity , subdirectories contained in each combination of fixPath - year fixPath <- "C:/Users/calcazar/Desktop/example" year <- 2008:2010 pathVector <- paste(fixPath, year, sep = "/") pathVector [1] "C:/Users/calcazar/Desktop/example/2008" "C:/Users/calcazar/Desktop/example/2009" [3] "C:/Users