as.character.filename: Coerce a character to a filename

Description Usage Arguments Value Examples

View source: R/filename.R

Description

This function coerces a filename into a character.

Usage

1
2
## 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

1
2
3
x <- "data_post_2011-01-02.txt"
fn <- as.filename(x)
print(as.character(fn))

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