read.dir: Read Files in a Directory

View source: R/read.dir.R

read.dirR Documentation

Read Files in a Directory

Description

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

Usage

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/ucbudar documentation built on July 15, 2024, 5:03 p.m.