dir.apply: Wrapper for applying a write function to each element of list...

View source: R/dirfns.R

dir.applyR Documentation

Wrapper for applying a write function to each element of list x and using names(x) as the filenames.

Description

Wrapper for applying a write function to each element of list x and using names(x) as the filenames.

Usage

dir.apply(x, path, fn = dir.tab, ...)

Arguments

x

A list.

fn

The function to be applied to each element of x. It should accept a path argument.

...

Additional arguments to fn.

Value

A list.

See Also

dir.tab, base::lapply

Examples

x <- split(iris,iris$Species)
dir.apply(x, dir.csv, path="path/to")

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