Learn R Programming

taRifx (version 1.0.6.2)

readdir: Loads all readable files in a directory into a list, with names according to the filenames

Description

Loads all readable files in a directory into a list, with names according to the filenames

Usage

readdir(path, exclude = "",
    filename.as.variable = "filename", stack = FALSE)

Arguments

path

is the directory path

exclude

is a regular expression. Matching filenames will be excluded

filename.as.variable

is a variable name to store the filename. "" means it will not be stored.

stack

if true attempts to stack the resultant data.frames together into a single data.frame

Value

A list of data.frames or a single data.frame