remove_file_extension

remove_file_extension

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.

Aliases
  • remove_file_extension
Examples
# NOT RUN {
myfilename="my.file.gri"
remove_file_extension(myfilename,".")
remove_file_extension(myfilename,".file.gri")
# }
Documentation reproduced from package gdalUtils, version 2.0.1.7, License: GPL (>= 2)

Community examples

Looks like there are no examples yet.