lrtab: Applies a function to all file names in a specified directory...

View source: R/dirfns.R

lrtabR Documentation

Applies a function to all file names in a specified directory matching a given pattern.

Description

Applies a function to all file names in a specified directory matching a given pattern.

Usage

lrtab(dir, fn = read.table, pattern = NULL, ...)

Arguments

dir

The traget directory.

fn

The function to be applied to each directory name.

pattern

The regular expression matching desired files.

...

Additional arguments to fn.

Value

A list.

See Also

dir.img, base::list.files

Examples

dir.csv(iris, "example", path="path/to")
dir.tab(iris, "example", path="path/to")
lrtab("path/to", read.csv, "\\.csv")

kewiechecki/dirfns documentation built on June 8, 2025, 5:18 a.m.