I'm trying to join multiple xlsx files in R. To do this, first open the following libraries and use the programming:
library(readxl)
library(plyr)
larquivos<-list.files("C:\Users\tomas.veiga\Documents\Financeiro\dados",full.names=TRUE)
arquivos <- lapply(larquivos, function(x) read_excel(path = x, sheet = 1))
Since the files have a difference in the number of lines, I try to do the following:
extracontab<-data.frame(rbind.fill(arquivos[c(1:12)]))
But there is an error:
Error in vector(type, length) : vector: cannot make a vector of mode 'NULL'.
I also try to do this:
extracontab<-data.frame(rbind.fill(arquivos[c(1:12)]))
But nothing works. What should I do? Thank you.