as.filename: Coerce to a filename

Description Usage Arguments Value Examples

View source: R/filename.R

Description

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

Usage

1
2
3
4
5
6
7
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

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

filenamer documentation built on May 4, 2018, 9:04 a.m.