Load thousands of files in R #38
Replies: 1 comment
-
Hi @christophe-rd, I think you'll very likely get better help if you post this question on Posit Community: https://community.rstudio.com/ |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
HI!
I need to upload about 21 000 csv files from my computer's directory.
They are structured like so: 2005_4.csv where 2005 is the year and 4 is the day of the year. I have those files for more than 20 years. Obviously, I can't load them all one by one and have no idea how to do that operation.
They are all structured the same way though like so:
What I am aiming to do: Create an empty data frame with the four columns mentioned above, and add columns corresponding to the fifth column of each file, where each column would be named according to the corresponding file. I'de like to create a new data frame for each file.
Hope I was clear enough. Hope someone can help me as I am a little lost!
Beta Was this translation helpful? Give feedback.
All reactions