read_many: Read many files and combine them.

Description Usage Arguments Value Examples

Description

Read many files and combine them.

Usage

1
read_many(paths, FUN = read_cai, colname = "file")

Arguments

paths

A vector of files to parse.

FUN

The function to use to parse the files. Default 'read_cai'.

colname

What to call the column added.

Value

A concatenated dataframe with filenames added as a new column.

Examples

1
2
3
4
5
paths <- list.files("dir", full.names = TRUE)
# or
paths <- Sys.glob("dir/*.cai")
df <- read_many(paths, FUN=read_cai, colname="file")
head(df)

CCDM-Programming-Club/codonfriend documentation built on May 9, 2019, 3:20 a.m.