powered by
This function trims extensions from a file name.
trim_ext(x, n)
modified object of the original type
a character or a filename
character
filename
number of extensions to trim off the end
x <- "path/data.txt.gz" print(trim_ext(x))
Run the code above in your browser using DataLab