I'm sure there is a better way to do this, but for any #RStats beginners or not beginners, you can use list.files() to get a list of all files in a folder. Then you can use a for loop to bring in ALL those files, or any subset list of those files. This can be a game changer.
2
1
11
Replying to @HayleyTumas
You do not need a loop: Many operations -- including regular expression or time management (calling `file.info()` first) are vectorized. I have some (only half-)joking slides on 'R for system administration' for that very reason. #Rstats is good at this too!

Sep 22, 2022 · 11:03 PM UTC

1
3
I think they mean to say you loop to read them in. Which also you can do with lapply / purrr::map
2