Skip to contents

Basename of file without extension

Usage

file_name(x, compression = FALSE)

Arguments

x

character vector giving file paths.

compression

logical: should compression extension .gz, .bz2 or .xz be removed first?

Value

The file name of the path without the extension