I managed to import multiple xlsx files using this tip(How can I read multiple (excel) files into R?), but now I would like to merge all these imported data.frames into a single data.frame.
All xlsx files have the same header but are from different years. I would like to string them together so that the header works for everyone.
Example part:
df 1
df2
I hope this:
to import all the data.frame I used the code:
library(readxl)
library(dplyr)
setwd('D:/01-Mestrado/0Dissertacacao/1Rstudio/classes_novo')
file.list <- list.files(pattern='*.xlsx')
df.list <- lapply(file.list, read_excel)
View(df.list)