Skip to content

Instantly share code, notes, and snippets.

View davidclarance's full-sized avatar
🐦
birding

David Clarance davidclarance

🐦
birding
  • M-KOPA
  • Nairobi, Kenya
View GitHub Profile
@davidclarance
davidclarance / read_all_csv_purrr.r
Last active September 20, 2018 15:16 — forked from ibombonato/read_all_csv_purrr.r
R - Read all csv in folder with purrr
library(tidyverse)
files <- list.files(path = "./data/", pattern = "*.csv")
df <- files %>%
map(function(x) {
read_csv(paste0("./data/", x))
}) %>%
reduce(rbind)