Hi,
This generic example I made from my code works perfectly. So I think the error is on my side with the data frames I am trying to bind. I just can't detect any problems. In my last step [the equivalent of ABCD <- rbind.fill(ABC,D)], I get a dataset D with 106 columns whether I say rbind.fill(ABC,D) or rbind.fill(D,ABC), but the order determines which columns are dropped.
I don't think my example will be all that helpful since it works, but you can get a better sense of my approach. Again, my problem is that the last step fails to bind all columns. I am not using any options with rbind.fill.
I am curious to know if there are known reasons why rbind.fill would fail to bind unique columns.
require(plyr)
path <- paste("YOURPATH","data",sep="/")
A <- read.csv(paste(path,"A.csv",sep="/")) # has columns A and B
B <- read.csv(paste(path,"B.csv",sep="/")) # has columns B and C
C <- read.csv(paste(path,"C.csv",sep="/")) # has columns C and D
D <- read.csv(paste(path,"D.csv",sep="/")) # has columns D and E
# bind
AB <- rbind.fill(A,B)
ABC <- rbind.fill(AB,C)
ABCD <- rbind.fill(ABC,D)
sessionInfo()
# R version 2.14.1 (2011-12-22)
# Platform: i686-pc-linux-gnu (32-bit)
#
# attached base packages:
# [1] grid stats graphics grDevices utils datasets methods base
#
# other attached packages:
# [1] GFusionTables_1.0 gregmisc_2.1.2 gplots_2.11.0 KernSmooth_2.23-7 caTools_1.13 gtools_2.7.0 gmodels_2.15.3 gdata_2.11.0
# [9] plyr_1.7.1 car_2.0-12 nnet_7.3-1 MASS_7.3-16 lubridate_1.1.0 RCurl_1.91-1 bitops_1.0-4.1 sendmailR_1.1-1
# [17] base64_1.1
#
# loaded via a namespace (and not attached):
# [1] stringr_0.6 tools_2.14.1