Hello
Can somebody please help me.
I have uploaded 12 csv files individually to R Studio. Mow I want to merge them vertically together as 1 file. All the coloumns are the same in all the 12 files. Each file is a monthly file and i want to analyze as yearly with just 1 file. Thanks
Hello Yabarina Thanks. I will yty to merge as shown.
Since readr version 2.0.0 you can read all csv files into a single data frame directly, the code would be something like this:
readr
list_of_files <- list.files(path = "path/to/your/files", recursive = TRUE, pattern = "\\.csv$", full.names = TRUE) df <- readr::read_csv(list_of_files, id = "file_name")
This topic was automatically closed 21 days after the last reply. New replies are no longer allowed. If you have a query related to it or one of the replies, start a new topic and refer back with a link.