getFileExtension: Get the extension from a filename

View source: R/getFileExtension.R

getFileExtensionR Documentation

Get the extension from a filename

Description

Function to get the extension from a filename

Usage

getFileExtension(fn)

Arguments

fn
  • the filename

Details

If the filename has no extension, the functions returns NA. If the filename ends with ".", then "" is returned.

Value

  • the extension (without the "."), or NA if no extension


wStockhausen/wtsUtilities documentation built on March 16, 2024, 10:38 a.m.