Learn R Programming

gdalUtils (version 2.0.3.2)

remove_file_extension: remove_file_extension

Description

Strips a file extension from a filename.

Usage

remove_file_extension(filename, extension_delimiter = ".")

Arguments

filename

Character. The input filename.

extension_delimiter

Character. The extension or extension delimiter (default ".") to remove.

Examples

Run this code
# NOT RUN {
myfilename="my.file.gri"
remove_file_extension(myfilename,".")
remove_file_extension(myfilename,".file.gri")
# }

Run the code above in your browser using DataLab