View source: R/General_Functions.R
combineFiles | R Documentation |
Combines files from a folder into a single dataframe
combineFiles(
files,
pattern = NULL,
type = "csv",
sep = NULL,
stringsAsFactors = F,
header = T,
skip = 0,
combineColumns = F
)
files |
a list of file paths to the files to be combined. |
pattern |
Character string of pattern in file name to select files. |
type |
File type suffix, supported options are "txt" and "csv". |
sep |
File delimiter, if required. |
stringsAsFactors |
True or False if strings should be read as factors, defaults to F |
header |
Should first row be read as file header. |
skip |
Rows at the start of the file to skip. |
combineColumns |
Change to TRUE if you want to merge files by columns, default is FALSE which binds files by rows. |
Dataframe with all files combined.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.