powered by
This function sets the extension in a file name.
set_fext(x, ext, all)
modified object of the original type
a character or a filename
character
filename
new file extension
replace the entire extension
x <- "data_norm_2011-01-03.txt" print(set_fext(x, "csv"))
Run the code above in your browser using DataLab