I'm working in R studio and I have multiple small csv files (about 500) which I only need three columns from and within those columns, only two rows. Can I create a loop or series of loops to first extract the columns then the rows (or vice versa) that I need and write to one new csv file? Is there a way to maintain the file names so I know which data set came from where?
I read what I could find and tried to piece together a script, but nothing seems to work for what I need.