set_fext {filenamer} | R Documentation |
Set file extension
Description
This function sets the extension in a file name.
Usage
set_fext(x, ext, all)
Arguments
x |
a |
ext |
new file extension |
all |
replace the entire extension |
Value
modified object of the original type
Examples
x <- "data_norm_2011-01-03.txt"
print(set_fext(x, "csv"))
[Package filenamer version 0.2.4 Index]