as.filename: Coerce to a filename

View source: R/filename.R

as.filenameR Documentation

Coerce to a filename

Description

This function coerces an object into a filename, if possible.

Usage

as.filename(x, ...)

## S3 method for class 'filename'
as.filename(x, ...)

## S3 method for class 'character'
as.filename(x, tag.char = NULL, ...)

Arguments

x

a character or a filename

...

other arguments

tag.char

character to delimit tags, defaults to '_'

Value

a filename object

Examples

fn <- as.filename("data_raw_2011-01-01.txt")
str(fn)


filenamer documentation built on May 29, 2024, 11:16 a.m.