This function merges multiple files together.
files_join(path = "", pattern = "", delim = "\t", na = "", output.file = "", id = NULL)
path | Folder location of files to be merged |
---|---|
pattern | Pattern to identify files to be merged |
delim | Delimiter used in files. Passed onto `readr::read_delim()` |
na | How are missing values defined in files to be merged. Passed to `readr::write_delim()` |
output.file | File name and path to be saved to |
id | Subject ID variable name. Passed onto `plyr::join_all(by = id)` |
files_join(path = "./Data", pattern = ".txt")#> Error in dfs[[1]]: subscript out of bounds