read.files: This function reads a list of folders using the read function...

Description Usage Arguments Value Examples

View source: R/read.folder.r

Description

This function reads a list of folders using the read function of your choice

Usage

1
read.files(file.list, read.function, ...)

Arguments

file.list

A list of file paths

read.function

A read function. Does not have a default. Possible suggestions are read.csv, read.table, fread, etc

Value

This function returns the object (data.frame, data.table, etc) of your choice containing data from all files specified

Examples

1
read.files(c("file1.csv", "file2.csv", read.function=read.table, col.names=c("a","b","c"), colClasses=c("character","character","numeric"))

michalmonselise/read.folder documentation built on May 22, 2019, 9:53 p.m.