read_rbind: Read in a list of files

Description Usage Arguments Details Examples

Description

This function reads in a list of files and combines them into one tibble.

Usage

1
read_rbind(files, n = NULL, cols = NULL)

Arguments

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

Details

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.

Examples

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)

jtmccr1/HIVEr documentation built on May 29, 2019, 1:50 a.m.