trim_ext {filenamer} | R Documentation |
Trim extensions from a file name
Description
This function trims extensions from a file name.
Usage
trim_ext(x, n)
Arguments
x |
a |
n |
number of extensions to trim off the end |
Value
modified object of the original type
Examples
x <- "path/data.txt.gz"
print(trim_ext(x))
[Package filenamer version 0.2.4 Index]