This function allows you to merge all the files in a specified folder. It handles removing the extra header lines, if necessary. It also adds the file name as an extra variable, if this is necessary.
1 2 | merge_files(path = getwd(), pattern = "*", type = "csv", FNvar = "",
col_types = cols(.default = col_character()), ...)
|
path |
Defaults to the current working directory using getwd() |
pattern |
The pattern used to filter the files prior to the merge |
type |
The type of merge. Possible options are csv, fixed, other |
FNvar |
The name of the variable which will contain the filename. Will only add filename if this parameter has a variable name. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.