Skip to content

Instantly share code, notes, and snippets.

@dwhdai
Last active March 29, 2019 16:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dwhdai/075469159bdb1d4fa4d29d87c43fc4d0 to your computer and use it in GitHub Desktop.
Save dwhdai/075469159bdb1d4fa4d29d87c43fc4d0 to your computer and use it in GitHub Desktop.
Read a directory of similar data files and merging them in R
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