powered by
This function coerces a filename into a character.
filename
# S3 method for filename as.character(x, tag.char = NULL, simplify = FALSE, ...)
a character vector
character
a filename object
character to delimit tags, defaults to '_'
'_'
if TRUE, all timestamps are omitted
TRUE
unused arguments
x <- "data_post_2011-01-02.txt" fn <- as.filename(x) print(as.character(fn))
Run the code above in your browser using DataLab