concatenate_csvs | R Documentation |
Combine directory of CSVs into a single CSV
concatenate_csvs( dir, cols, pattern = NULL, merged_name = "merged.csv", read = utils::read.csv, ..., remove_after_merge = FALSE )
dir |
Directory of CSVs |
cols |
Vector of column names; if NULL (default), default column names are applied to the merged CSV (character vector) |
pattern |
Regular expression to filter files in |
merged_name |
Name of concatenated CSV; defaults to "merged.csv" (string) |
read |
Function to read CSV files; defaults to |
... |
Arguments to be passed to |
remove_after_merge |
If FALSE (default), files in |
A CSV called "merged.csv" in dir
directory
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.