What is the most efficient way to rbind data frames based on column names? All data frames do not have the same column names, so I expect NA values to be introduced in this process.
Here is a reproducible example of what I am talking about, but keep in mind that the data frame size is 1 row by ~10^8 columns for each data frame. I have a list of 100 data frames like this.
a <- as.data.frame(t(as.data.frame(c(1, 4, 5, 3, 7, 3, 5, 6))))
rownames(a) <- NULL
colnames(a) <- c("AA", "DD", "CD", "KD", "DSF", "DFS", "RF")
b <- as.data.frame(t(as.data.frame(c(4, 7, 3, 2, 7, 3)))
rownames(b) <- NULL
colnames(b) <- c("AA", "DFS", "CD", "UF", "KD", "DD")
c <- as.data.frame(t(as.data.frame(c(2, 4, 7, 3,)))
rownames(c) <- NULL
colnames(c) <- c("AA", "NF", "CD", "UF")
list <- list(a, b, c)
Thanks!