Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

trim_ext

Trim extensions from a file name


Description

This function trims extensions from a file name.

Usage

trim_ext(x, n)

Arguments

x

a character or a filename

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))

filenamer

Easy Management of File Names

v0.2.3
GPL (>= 3)
Authors
David J. H. Shih
Initial release
2018-05-01

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.