read.csv.all | R Documentation |
This function uses Sys.glob to search for files matching a given string and then cycles through those files, reading them in as CSVs. This function assumes that all your CSV files are the same format or at least can be 'rbind'ed together.
read.csv.all(search_str, add_file_num = F, debug = F)
search_str |
string to pass to Sys.glob for the search |
add_file_num |
Optional: add an additional column (file_num) to indicate the count in the list of files being imported |
debug |
Optional: print out debugging messages during operation |
all_CSVs = read.csv.all('directory/*/*.csv')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.