dir.tab: Concatenates a path, filename, and file extension into an...

View source: R/dirfns.R

dir.tabR Documentation

Concatenates a path, filename, and file extension into an output path, then writes data x to the output path as a tab-separated file. Any folders in the path that do not exist are created.

Description

Concatenates a path, filename, and file extension into an output path, then writes data x to the output path as a tab-separated file. Any folders in the path that do not exist are created.

Usage

dir.tab(x, filename, path = ".", ext = "txt", quote = F, ..., append.date = T)

Arguments

x

Data to be written to filename.

filename

The output file name.

path

The path to the output file.

ext

The file extension.

...

Additional arguments to write.table.

append.date

Whether to write the output to a directory with today's date.

See Also

dir.out, utils::write.table

Examples

dir.tab(iris, "example", path="path/to")

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