Learn R Programming

filenamer (version 0.3)

tag: Insert tag or extension and coerce to character

Description

This function inserts a tag or extension into a file name and returns a charcter vector.

Usage

tag(x, ...)

Value

a character vector

Arguments

x

a filename or character

...

arguments passed to insert

Examples

Run this code
x <- "data.txt"
y <- tag(x, "qc")
print(y)
f <- as.filename(x)
g <- tag(f, "qc")
print(g)

Run the code above in your browser using DataLab