read.dir: Read Files in a Directory

Description Usage Arguments Value

View source: R/read.dir.R

Description

Read all the files in a directory into a list object.

Usage

1
read.dir(path = ".", pattern = NULL, sep = ",", ...)

Arguments

path

a character vector of full path names

pattern

an optional regular expression. Only file names which match the regular expression will be returned. The names of the list items will have pattern removed from them

sep

the field separator character for data frame-like files. Defaults to comma separated values.

...

other arguments to pass to list.files()

Value

a list with one object per file. Files are read via read.tidy(). As such, files that are not data frame-ish may not be read correctly.


crazybilly/muadc documentation built on March 6, 2021, 4:15 p.m.