Last active
March 29, 2019 16:47
-
-
Save dwhdai/075469159bdb1d4fa4d29d87c43fc4d0 to your computer and use it in GitHub Desktop.
Read a directory of similar data files and merging them in R
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
files <- dir("/path/to/your/files", full.names = T) | |
df <- files %>% | |
map(readr::read_csv) %>% | |
reduce(bind_rows) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment