Skip to content

Instantly share code, notes, and snippets.

@kazutan
Created November 16, 2015 08:52
Show Gist options
  • Save kazutan/08f7aff32a1fb047afa2 to your computer and use it in GitHub Desktop.
Save kazutan/08f7aff32a1fb047afa2 to your computer and use it in GitHub Desktop.
path <- getwd()
write.csv(iris, "iris-tan.csv")
write.csv(iris, "iris-tan2.csv")
write.csv(iris, "iris-tan3.csv")
ss <- list.files(path,pattern = "iris-")
iristan <- data.frame()
for (i in 1:length(ss)) {
d <- read.csv(ss[i])
iristan <- dplyr::bind_rows(iristan,d)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment