Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

as.filename

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

Easy Management of File Names

v0.2.3
GPL (>= 3)
Authors
David J. H. Shih
Initial release
2018-05-01

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.