Skip to content

Instantly share code, notes, and snippets.

@ellisvalentiner
Created February 6, 2017 20:09
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 ellisvalentiner/649fa5b15c978c6ae22a5f88963ad6fa to your computer and use it in GitHub Desktop.
Save ellisvalentiner/649fa5b15c978c6ae22a5f88963ad6fa to your computer and use it in GitHub Desktop.
Read all CSV files in a directory and return as a tibble. (Who knows how this might fail)
library(tidyverse)
all_df <- list.files("./data", full.names = TRUE) %>%
map_df(., read_csv)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment