Description Usage Arguments Details Examples
This function reads in a list of files and combines them into one tibble.
1 | read_rbind(files, n = NULL, cols = NULL)
|
files |
A list of files to read in and combine |
n |
the optional entry to append as the run column. It is passed to split_path. It is the nth entry in the path (sparating at '/') |
cols |
An optional list of column types to pass to read_csv |
There are options to append a run column using a section of the path from each file. When using we should speficy the Id column is a character as some can be interpretted as either a character or a intereger. But others are characters.
1 2 3 4 5 6 7 | ## Not run:
read_rbind(c("../../Analysis/HIVE/data/processed/cali09/all.coverage.csv",
"../../Analysis/HIVE/data/processed/cali09_2/all.coverage.csv"),
n=7,
cols=list(Id=readr::col_character()))
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.