I have many data frames that are usually in a format file.[i], but sometimes there are missing data frames:
file.1 file.2 file.3 file.4 file.5 file.6 file.7 file.9 file.11 file.13
I tried to do the following:
dt <- do.call(rbind.fill,
lapply(paste("file.", 1:length(filenames), sep=""), get))
And I get:
Error in FUN(c("file.1", "file.2", "file.3", "file.4", "file.5", "file.6", :
object 'file.8' not found
Is there any way to rbind.fillignore missing data frames?
source
share