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

as.character.filename

Coerce a character to a filename


Description

This function coerces a filename into a character.

Usage

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

Arguments

x

a filename object

tag.char

character to delimit tags, defaults to '_'

simplify

if TRUE, all timestamps are omitted

...

unused arguments

Value

a character vector

Examples

x <- "data_post_2011-01-02.txt"
fn <- as.filename(x)
print(as.character(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.