trim_ext: Trim extensions from a file name

View source: R/trim.R

trim_extR Documentation

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 documentation built on April 11, 2025, 5:46 p.m.