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
#---------------------------------------------------------------------------------------- | |
# File: | |
# Author: Joseph Flanagan, adopted from https://stackoverflow.com/questions/10002021/split-dataframe-into-multiple-output-files-in-r | |
# email: [email protected] | |
# Purpose: Split a dataframe by group, then save each as separate .csv file | |
#---------------------------------------------------------------------------------------- | |
# new tidyverse solution with `group_walk` | |
library(dplyr) | |
library(readr) |